Skip to main content

cimstructs/
ExcST6BOELselectorKind.rs

1/// Types of connections for the OEL input used for static excitation systems type 6B.
2#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
3pub enum ExcST6BOELselectorKind {
4    /// No OEL input is used. Corresponds to OELin not = 1 and not = 2 on the ExcST6B diagram. Original ExcST6B model would have called this OELin = 0.
5    noOELinput,
6    /// The connection is before UEL. Corresponds to OELin = 1 on the ExcST6B diagram.
7    beforeUEL,
8    /// The connection is after UEL. Corresponds to OELin = 2 on the ExcST6B diagram.
9    afterUEL,
10}
11
12impl ExcST6BOELselectorKind {
13    pub fn uri(&self) -> &'static str {
14        match self {
15            ExcST6BOELselectorKind::noOELinput => "http://iec.ch/TC57/CIM100#ExcST6BOELselectorKind.noOELinput",
16            ExcST6BOELselectorKind::beforeUEL => "http://iec.ch/TC57/CIM100#ExcST6BOELselectorKind.beforeUEL",
17            ExcST6BOELselectorKind::afterUEL => "http://iec.ch/TC57/CIM100#ExcST6BOELselectorKind.afterUEL",
18        }
19    }
20}