pub struct ProfileStore {
pub supply: Supply,
/* private fields */
}Expand description
The installed profiles, and the composite calculation over them.
Fields§
§supply: SupplyThe supply parameters used when a unit conversion is needed.
Implementations§
Source§impl ProfileStore
impl ProfileStore
Sourcepub fn install(&mut self, profile: Profile)
pub fn install(&mut self, profile: Profile)
Installs a profile, replacing any profile with the same id.
K01: a SetChargingProfile with an id that already exists replaces it. Every purpose
is accepted; for one that came from the CSMS, check Purpose::settable_by_csms
first (K01.FR.62/64).
Sourcepub fn clear(
&mut self,
id: Option<i32>,
evse_id: Option<u32>,
purpose: Option<Purpose>,
stack_level: Option<i32>,
) -> usize
pub fn clear( &mut self, id: Option<i32>, evse_id: Option<u32>, purpose: Option<Purpose>, stack_level: Option<i32>, ) -> usize
Removes profiles matching the ClearChargingProfile criteria. Returns how many went.
Passing no criteria at all clears everything, as the message defines.
Sourcepub fn clear_transaction(&mut self, transaction_id: &str) -> usize
pub fn clear_transaction(&mut self, transaction_id: &str) -> usize
Removes every profile bound to a transaction that has ended (K08).
Sourcepub fn composite(
&self,
evse_id: u32,
from: DateTime,
duration: i64,
rate_unit: RateUnit,
transaction: Option<(&str, DateTime)>,
) -> CompositeSchedule
pub fn composite( &self, evse_id: u32, from: DateTime, duration: i64, rate_unit: RateUnit, transaction: Option<(&str, DateTime)>, ) -> CompositeSchedule
Computes the composite schedule for evse_id.
transaction names the transaction running at the EVSE, which decides which
TxProfile applies and where a Relative schedule starts.