#[non_exhaustive]pub enum ControlType {
PowerEnvelopeBasedControl,
PowerProfileBasedControl,
OperationModeBasedControl,
FillRateBasedControl,
DemandDrivenBasedControl,
NotControllable,
NoSelection,
}Expand description
The way a Resource Manager expresses its flexibility.
Five control types cover the eight flexibility patterns the standard identifies, plus
two values that are not control types at all: NOT_CONTROLABLE, a legal selection
after which only measurements and forecasts flow, and NO_SELECTION, the deactivated
state.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PowerEnvelopeBasedControl
Power Envelope Based Control — a device that cannot be controlled but can be bounded. Curtailable PV, a wallbox that only curtails.
PowerProfileBasedControl
Power Profile Based Control — a device with a task to perform that is flexible about when. A washing machine, a dishwasher.
OperationModeBasedControl
Operation Mode Based Control — a device that can adjust its power with no constraint on how long the adjustment lasts. A generator.
FillRateBasedControl
Fill Rate Based Control — anything that stores or buffers energy. A battery, an EV, a hot-water tank, a fridge.
DemandDrivenBasedControl
Demand Driven Based Control — a device that must meet a demand but is flexible in how. A hybrid heat pump.
NotControllable
No control is possible. Measurements and forecasts may still be sent.
The wire spelling has one l. The Rust name does not inherit the typo; the
serde rename carries the bytes (erratum E15).
NoSelection
No control type is, or has been, selected.
Implementations§
Source§impl ControlType
impl ControlType
Sourcepub const fn is_controllable(self) -> bool
pub const fn is_controllable(self) -> bool
Whether this is one of the five real control types, as opposed to
NOT_CONTROLABLE or NO_SELECTION.
Sourcepub const fn uses_operation_modes(self) -> bool
pub const fn uses_operation_modes(self) -> bool
Whether the control type is built on operation modes, transitions and timers.
the S2 documentation, Operation modes: OMBC, FRBC and DDBC share that machinery; PEBC and PPBC “each have their own approach”.
Sourcepub const fn abbreviation(self) -> Option<&'static str>
pub const fn abbreviation(self) -> Option<&'static str>
The short name used in message types: "FRBC", "PEBC", and so on.
Trait Implementations§
Source§impl Clone for ControlType
impl Clone for ControlType
impl Copy for ControlType
Source§impl Debug for ControlType
impl Debug for ControlType
Source§impl<'de> Deserialize<'de> for ControlType
impl<'de> Deserialize<'de> for ControlType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ControlType
Source§impl Hash for ControlType
impl Hash for ControlType
Source§impl Ord for ControlType
impl Ord for ControlType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ControlType
impl PartialEq for ControlType
Source§impl PartialOrd for ControlType
impl PartialOrd for ControlType
Source§impl Serialize for ControlType
impl Serialize for ControlType
impl StructuralPartialEq for ControlType
Auto Trait Implementations§
impl Forget for ControlType
impl Freeze for ControlType
impl Move for ControlType
impl RefUnwindSafe for ControlType
impl Send for ControlType
impl Sync for ControlType
impl Unpin for ControlType
impl UnsafeUnpin for ControlType
impl UnwindSafe for ControlType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.