Skip to main content

ScopfDeviceRow

Struct ScopfDeviceRow 

Source
#[non_exhaustive]
pub struct ScopfDeviceRow {
Show 42 fields pub bus: BusId, pub uid: String, pub c_on: f64, pub c_su: f64, pub c_sd: f64, pub p_ru: f64, pub p_rd: f64, pub p_ru_su: f64, pub p_rd_sd: f64, pub c_rgu: Vec<f64>, pub c_rgd: Vec<f64>, pub c_scr: Vec<f64>, pub c_nsc: Vec<f64>, pub c_rru_on: Vec<f64>, pub c_rru_off: Vec<f64>, pub c_rrd_on: Vec<f64>, pub c_rrd_off: Vec<f64>, pub c_qru: Vec<f64>, pub c_qrd: Vec<f64>, pub p_rgu_max: f64, pub p_rgd_max: f64, pub p_scr_max: f64, pub p_nsc_max: f64, pub p_rru_on_max: f64, pub p_rru_off_max: f64, pub p_rrd_on_max: f64, pub p_rrd_off_max: f64, pub p_0: f64, pub q_0: f64, pub p_max: Vec<f64>, pub p_min: Vec<f64>, pub q_max: Vec<f64>, pub q_min: Vec<f64>, pub sus: Vec<Vec<f64>>, pub q_bound_cap: i64, pub q_linear_cap: i64, pub beta_ub: Option<f64>, pub beta_lb: Option<f64>, pub q_0_ub: Option<f64>, pub q_0_lb: Option<f64>, pub beta: Option<f64>, pub q_p0: Option<f64>,
}
Expand description

One simple dispatchable device row.

Producers and consumers share this layout. Vector fields use the internal zero based period order.

The reactive capability block is the q_bound_cap/q_linear_cap pair and the parameters of the mode each one selects. The two modes are mutually exclusive and a device can select neither. A parameter of a mode the device did not select is None. Read the two flags before the parameters.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§bus: BusId§uid: String§c_on: f64§c_su: f64§c_sd: f64§p_ru: f64§p_rd: f64§p_ru_su: f64§p_rd_sd: f64§c_rgu: Vec<f64>§c_rgd: Vec<f64>§c_scr: Vec<f64>§c_nsc: Vec<f64>§c_rru_on: Vec<f64>§c_rru_off: Vec<f64>§c_rrd_on: Vec<f64>§c_rrd_off: Vec<f64>§c_qru: Vec<f64>§c_qrd: Vec<f64>§p_rgu_max: f64§p_rgd_max: f64§p_scr_max: f64§p_nsc_max: f64§p_rru_on_max: f64§p_rru_off_max: f64§p_rrd_on_max: f64§p_rrd_off_max: f64§p_0: f64§q_0: f64§p_max: Vec<f64>§p_min: Vec<f64>§q_max: Vec<f64>§q_min: Vec<f64>§sus: Vec<Vec<f64>>§q_bound_cap: i64§q_linear_cap: i64§beta_ub: Option<f64>§beta_lb: Option<f64>§q_0_ub: Option<f64>§q_0_lb: Option<f64>§beta: Option<f64>§q_p0: Option<f64>

The intercept of the linear capability line. The GOC3 document calls this q_0, which this row already uses for initial_status.q.

Trait Implementations§

Source§

impl Clone for ScopfDeviceRow

Source§

fn clone(&self) -> ScopfDeviceRow

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ScopfDeviceRow

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ScopfDeviceRow

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for ScopfDeviceRow

Source§

fn eq(&self, other: &ScopfDeviceRow) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ScopfDeviceRow

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ScopfDeviceRow

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,