Skip to main content

cimstructs/
RotorKind.rs

1/// Type of rotor on physical machine.
2#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
3pub enum RotorKind {
4    /// Round rotor type of synchronous machine.
5    roundRotor,
6    /// Salient pole type of synchronous machine.
7    salientPole,
8}
9
10impl RotorKind {
11    pub fn uri(&self) -> &'static str {
12        match self {
13            RotorKind::roundRotor => "http://iec.ch/TC57/CIM100#RotorKind.roundRotor",
14            RotorKind::salientPole => "http://iec.ch/TC57/CIM100#RotorKind.salientPole",
15        }
16    }
17}