Skip to main content

cimstructs/
ExcREXSFeedbackSignalKind.rs

1/// Types of rate feedback signals.
2#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
3pub enum ExcREXSFeedbackSignalKind {
4    /// The voltage regulator output voltage is used. It is the same as exciter field voltage.
5    fieldVoltage,
6    /// The exciter field current is used.
7    fieldCurrent,
8    /// The output voltage of the exciter is used.
9    outputVoltage,
10}
11
12impl ExcREXSFeedbackSignalKind {
13    pub fn uri(&self) -> &'static str {
14        match self {
15            ExcREXSFeedbackSignalKind::fieldVoltage => "http://iec.ch/TC57/CIM100#ExcREXSFeedbackSignalKind.fieldVoltage",
16            ExcREXSFeedbackSignalKind::fieldCurrent => "http://iec.ch/TC57/CIM100#ExcREXSFeedbackSignalKind.fieldCurrent",
17            ExcREXSFeedbackSignalKind::outputVoltage => "http://iec.ch/TC57/CIM100#ExcREXSFeedbackSignalKind.outputVoltage",
18        }
19    }
20}