Skip to main content

cimstructs/
ControlAreaTypeKind.rs

1/// The type of control area.
2#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
3pub enum ControlAreaTypeKind {
4    /// Used for automatic generation control.
5    AGC,
6    /// Used for load forecast.
7    Forecast,
8    /// Used for interchange specification or control.
9    Interchange,
10}
11
12impl ControlAreaTypeKind {
13    pub fn uri(&self) -> &'static str {
14        match self {
15            ControlAreaTypeKind::AGC => "http://iec.ch/TC57/CIM100#ControlAreaTypeKind.AGC",
16            ControlAreaTypeKind::Forecast => "http://iec.ch/TC57/CIM100#ControlAreaTypeKind.Forecast",
17            ControlAreaTypeKind::Interchange => "http://iec.ch/TC57/CIM100#ControlAreaTypeKind.Interchange",
18        }
19    }
20}