Enum Direction
pub enum Direction {
Consumption,
Production,
}Expand description
Which of the two limitation use cases an actor is playing.
Both state machines use nonnegative magnitudes. The direction determines the active limit’s wire sign (§2.8.1: ≥ 0 for LPC, ≤ 0 for LPP), its description, and the failsafe configuration key. See Sign conventions.
Variants§
Consumption
Limitation of Power Consumption: how much the device may draw.
The basis of §14a EnWG in Germany.
Production
Limitation of Power Production: how much the device may feed in.
The basis of EEG §9 (2023) in Germany.
Implementations§
§impl Direction
impl Direction
pub const fn energy_direction(self) -> EnergyDirection
pub const fn energy_direction(self) -> EnergyDirection
The limitDirection of the limit description (LPC/LPP Table 22).
pub const fn failsafe_limit_key(self) -> DeviceConfigurationKeyName
pub const fn failsafe_limit_key(self) -> DeviceConfigurationKeyName
The keyName of the failsafe power limit ([LPC-021], [LPP-021]).
The schema names both, so this is a variant rather than a string: a typo cannot
reach the wire as an Other extension nobody recognises.
pub const fn nominal_max_characteristic(
self,
) -> ElectricalConnectionCharacteristicType
pub const fn nominal_max_characteristic( self, ) -> ElectricalConnectionCharacteristicType
The characteristicType of the device’s own nominal maximum ([LPC/LPP-041]).
LPC UC TS §2.6.4.1 and LPP §2.6.4.1: this value says what the appliance is
physically able to draw or feed in, and it is for appliances only. An energy
manager publishes contractual_max_characteristic
instead — it has no single nameplate of its own, and the number an Energy Guard
needs from it is what the customer’s contract allows.
pub const fn contractual_max_characteristic(
self,
) -> ElectricalConnectionCharacteristicType
pub const fn contractual_max_characteristic( self, ) -> ElectricalConnectionCharacteristicType
The characteristicType of an energy manager’s contractual maximum ([LPC/LPP-042]).
The counterpart of nominal_max_characteristic,
and mutually exclusive with it: the specification says each SHALL only be used by
the kind of actor it belongs to.
pub const fn use_case_name(self) -> &'static str
pub const fn use_case_name(self) -> &'static str
The use-case name a device announces in nodeManagementUseCaseData.
pub const fn scenario_one_name(self) -> &'static str
pub const fn scenario_one_name(self) -> &'static str
The name of scenario 1, as the specification writes it.
§impl Direction
impl Direction
pub const fn signal_prefix(self) -> &'static str
pub const fn signal_prefix(self) -> &'static str
The prefix runtime signals are named with: lpc or lpp.
The abbreviation the test specification uses, lowercased, which is what the laboratory’s own tooling expects to see in a debug interface.