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: i32Stage index (0-based within System::stages).
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 · 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 PartialEq for ExternalNcsRow
impl PartialEq for ExternalNcsRow
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§
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