Skip to main content

cimstructs/
WindPlantQcontrolModeKind.rs

1/// Reactive power/voltage controller mode.
2#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
3pub enum WindPlantQcontrolModeKind {
4    /// Reactive power reference.
5    reactivePower,
6    /// Power factor reference.
7    powerFactor,
8    /// UQ static.
9    uqStatic,
10    /// Voltage control.
11    voltageControl,
12}
13
14impl WindPlantQcontrolModeKind {
15    pub fn uri(&self) -> &'static str {
16        match self {
17            WindPlantQcontrolModeKind::reactivePower => "http://iec.ch/TC57/CIM100#WindPlantQcontrolModeKind.reactivePower",
18            WindPlantQcontrolModeKind::powerFactor => "http://iec.ch/TC57/CIM100#WindPlantQcontrolModeKind.powerFactor",
19            WindPlantQcontrolModeKind::uqStatic => "http://iec.ch/TC57/CIM100#WindPlantQcontrolModeKind.uqStatic",
20            WindPlantQcontrolModeKind::voltageControl => "http://iec.ch/TC57/CIM100#WindPlantQcontrolModeKind.voltageControl",
21        }
22    }
23}