Skip to main content

cimstructs/
ExcST7BUELselectorKind.rs

1/// Types of connections for the UEL input used for static excitation systems type 7B.
2#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
3pub enum ExcST7BUELselectorKind {
4    /// No UEL input is used. Corresponds to UELin not = 1 and not = 2 and not = 3 on the ExcST7B diagram. Original ExcST7B model would have called this UELin = 0.
5    noUELinput,
6    /// The signal is added to Vref. Corresponds to UELin = 1 on the ExcST7B diagram.
7    addVref,
8    /// The signal is connected into the input HVGate. Corresponds to UELin = 2 on the ExcST7B diagram.
9    inputHVgate,
10    /// The signal is connected into the output HVGate. Corresponds to UELin = 3 on the ExcST7B diagram.
11    outputHVgate,
12}
13
14impl ExcST7BUELselectorKind {
15    pub fn uri(&self) -> &'static str {
16        match self {
17            ExcST7BUELselectorKind::noUELinput => "http://iec.ch/TC57/CIM100#ExcST7BUELselectorKind.noUELinput",
18            ExcST7BUELselectorKind::addVref => "http://iec.ch/TC57/CIM100#ExcST7BUELselectorKind.addVref",
19            ExcST7BUELselectorKind::inputHVgate => "http://iec.ch/TC57/CIM100#ExcST7BUELselectorKind.inputHVgate",
20            ExcST7BUELselectorKind::outputHVgate => "http://iec.ch/TC57/CIM100#ExcST7BUELselectorKind.outputHVgate",
21        }
22    }
23}