pub struct NaiveRtController;Expand description
Naive real-time controller.
Uses only the battery to track a target feeder net load.
Implementations§
Source§impl NaiveRtController
impl NaiveRtController
Sourcepub fn capped_flexible_load_kw(
&self,
net_fixed_kw: f32,
requested_flexible_kw: f32,
max_import_kw: f32,
battery_max_discharge_kw: f32,
) -> f32
pub fn capped_flexible_load_kw( &self, net_fixed_kw: f32, requested_flexible_kw: f32, max_import_kw: f32, battery_max_discharge_kw: f32, ) -> f32
Cap a flexible load (e.g., EV/pump/refrigeration-like demand) so feeder import can be kept under limit with available battery discharge.
Trait Implementations§
Source§impl Clone for NaiveRtController
impl Clone for NaiveRtController
Source§fn clone(&self) -> NaiveRtController
fn clone(&self) -> NaiveRtController
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NaiveRtController
impl Debug for NaiveRtController
Source§impl Default for NaiveRtController
impl Default for NaiveRtController
Source§fn default() -> NaiveRtController
fn default() -> NaiveRtController
Returns the “default value” for a type. Read more
impl Copy for NaiveRtController
Auto Trait Implementations§
impl Freeze for NaiveRtController
impl RefUnwindSafe for NaiveRtController
impl Send for NaiveRtController
impl Sync for NaiveRtController
impl Unpin for NaiveRtController
impl UnwindSafe for NaiveRtController
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
Mutably borrows from an owned value. Read more