Skip to main content

cimstructs/
ExcST7BOELselectorKind.rs

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