CGMES_3_0_0
Loading...
Searching...
No Matches
Switch.hpp
1#ifndef Switch_H
2#define Switch_H
3/*
4Generated from the CGMES files via cimgen: https://github.com/sogno-platform/cimgen
5*/
6
7#include <list>
8#include <map>
9#include <string>
10#include <unordered_map>
11
12#include "ConductingEquipment.hpp"
13#include "BaseClassDefiner.hpp"
14#include "CGMESProfile.hpp"
15#include "CimClassDetails.hpp"
16
17#include "Boolean.hpp"
18#include "CurrentFlow.hpp"
19
20namespace CIMPP
21{
22 class SvSwitch;
23 class SwitchSchedule;
24
26 class Switch : public ConductingEquipment
27 {
28 public:
29 /* constructor initialising all attributes to null */
30 Switch();
31 ~Switch() override;
32
34 std::list<CIMPP::SvSwitch*> SvSwitch;
35
37 std::list<CIMPP::SwitchSchedule*> SwitchSchedules;
38
41
44
47
50
53
54 static const char debugName[];
55 const char* debugString() const override;
56
57 const std::list<std::string>& getAttributeNames() const override;
58
59 const std::string& getClassNamespaceUrl() const override;
60 const std::string& getAttributeNamespaceUrl(const std::string& attrName) const override;
61
62 const std::list<CGMESProfile>& getPossibleProfiles() const override;
63 const CGMESProfile& getRecommendedProfile() const override;
64 const std::list<CGMESProfile>& getPossibleAttributeProfiles(const std::string& attrName) const override;
65 const std::list<CGMESProfile>& getPossibleProfilesIncludingAttributes() const override;
66
67 static void addConstructToMap(std::unordered_map<std::string, BaseClass* (*)()>& factory_map);
68 static void addPrimitiveAssignFnsToMap(std::unordered_map<std::string, assign_function>& assign_map);
69 static void addClassAssignFnsToMap(std::unordered_map<std::string, class_assign_function>& assign_map);
70 void addPrimitiveGetFnsToMap(std::map<std::string, get_function>& get_map) const override;
71 void addClassGetFnsToMap(std::map<std::string, class_get_function>& get_map) const override;
72 void addEnumGetFnsToMap(std::map<std::string, get_function>& get_map) const override;
73
74 bool isAssignableFrom(BaseClass* otherObject) const override;
75 static const BaseClassDefiner declare();
76
77 protected:
78 std::map<std::string, AttrDetails> allAttrDetailsMap() const override;
79 };
80
81 BaseClass* Switch_factory();
82}
83#endif
Definition BaseClass.hpp:22
Definition BaseClassDefiner.hpp:12
Definition Boolean.hpp:13
Electrical current with sign convention: positive flow is out of the conducting equipment into the co...
Definition CurrentFlow.hpp:14
State variable for switch.
Definition SvSwitch.hpp:25
A schedule of switch positions. If RegularTimePoint.value1 is 0, the switch is open....
Definition SwitchSchedule.hpp:24
CIMPP::CurrentFlow ratedCurrent
The maximum continuous current carrying capacity in amps governed by the device material and construc...
Definition Switch.hpp:49
CIMPP::Boolean retained
Branch is retained in the topological solution. The flow through retained switches will normally be c...
Definition Switch.hpp:52
CIMPP::Boolean locked
If true, the switch is locked. The resulting switch state is a combination of locked and Switch....
Definition Switch.hpp:40
CIMPP::Boolean open
The attribute tells if the switch is considered open when used as input to topology processing....
Definition Switch.hpp:46
std::list< CIMPP::SwitchSchedule * > SwitchSchedules
A Switch can be associated with SwitchSchedules. Default: {}.
Definition Switch.hpp:37
std::list< CIMPP::SvSwitch * > SvSwitch
The switch state associated with the switch. Default: {}.
Definition Switch.hpp:34
CIMPP::Boolean normalOpen
The attribute is used in cases when no Measurement for the status value is present....
Definition Switch.hpp:43