Skip to main content

cimstructs/
CsPpccControlKind.rs

1/// Active power control modes for HVDC line operating as Current Source Converter.
2#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
3pub enum CsPpccControlKind {
4    /// Control is active power control at AC side, at point of common coupling. Target is provided by ACDCConverter.targetPpcc.
5    activePower,
6    /// Control is DC voltage with target value provided by ACDCConverter.targetUdc.
7    dcVoltage,
8    /// Control is DC current with target value provided by CsConverter.targetIdc.
9    dcCurrent,
10}
11
12impl CsPpccControlKind {
13    pub fn uri(&self) -> &'static str {
14        match self {
15            CsPpccControlKind::activePower => "http://iec.ch/TC57/CIM100#CsPpccControlKind.activePower",
16            CsPpccControlKind::dcVoltage => "http://iec.ch/TC57/CIM100#CsPpccControlKind.dcVoltage",
17            CsPpccControlKind::dcCurrent => "http://iec.ch/TC57/CIM100#CsPpccControlKind.dcCurrent",
18        }
19    }
20}