pub struct ExternalNcsRow {
pub stage_id: i32,
pub scenario_id: i32,
pub ncs_id: EntityId,
pub value: f64,
}Expand description
A single row from scenarios/external_ncs_scenarios.parquet.
Each row defines the pre-computed dimensionless availability factor for one
(stage, scenario, ncs) triple. Used when SamplingScheme::External is
active for NCS availability variables.
§Examples
use cobre_core::{EntityId, scenario::ExternalNcsRow};
let row = ExternalNcsRow {
stage_id: 1,
scenario_id: 0,
ncs_id: EntityId::from(7),
value: 0.85,
};
assert_eq!(row.ncs_id, EntityId::from(7));
assert!((row.value - 0.85).abs() < 1e-10);Fields§
§stage_id: i32Declared study-stage id this row applies to (not a 0-based index).
scenario_id: i32Scenario index (0-based). Must be >= 0.
ncs_id: EntityIdNCS source this availability factor belongs to.
value: f64Pre-computed dimensionless availability factor. Must be finite.
Trait Implementations§
Source§impl Clone for ExternalNcsRow
impl Clone for ExternalNcsRow
Source§fn clone(&self) -> ExternalNcsRow
fn clone(&self) -> ExternalNcsRow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExternalNcsRow
impl Debug for ExternalNcsRow
Source§impl<'de> Deserialize<'de> for ExternalNcsRow
impl<'de> Deserialize<'de> for ExternalNcsRow
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExternalNcsRow, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExternalNcsRow, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExternalNcsRow
impl PartialEq for ExternalNcsRow
Source§impl Serialize for ExternalNcsRow
impl Serialize for ExternalNcsRow
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ExternalNcsRow
Auto Trait Implementations§
impl Freeze for ExternalNcsRow
impl RefUnwindSafe for ExternalNcsRow
impl Send for ExternalNcsRow
impl Sync for ExternalNcsRow
impl Unpin for ExternalNcsRow
impl UnsafeUnpin for ExternalNcsRow
impl UnwindSafe for ExternalNcsRow
Blanket Implementations§
impl<T> Allocation for T
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more