pub struct OtdfRequest {
pub monitored_branch_indices: Vec<usize>,
pub outage_branch_indices: Vec<usize>,
pub bus_indices: Option<Vec<usize>>,
pub options: DcSensitivityOptions,
}Expand description
Advanced request for one-shot OTDF computation.
Fields§
§monitored_branch_indices: Vec<usize>Branch indices to monitor.
outage_branch_indices: Vec<usize>Branch indices to outage.
bus_indices: Option<Vec<usize>>Bus indices for OTDF vectors. None returns all buses.
options: DcSensitivityOptionsSensitivity options (slack policy).
Implementations§
Source§impl OtdfRequest
impl OtdfRequest
Sourcepub fn new(
monitored_branch_indices: &[usize],
outage_branch_indices: &[usize],
) -> Self
pub fn new( monitored_branch_indices: &[usize], outage_branch_indices: &[usize], ) -> Self
Create a request for the given monitored and outage branch sets.
Sourcepub fn with_bus_indices(self, bus_indices: &[usize]) -> Self
pub fn with_bus_indices(self, bus_indices: &[usize]) -> Self
Restrict OTDF vectors to specific bus indices.
Sourcepub fn with_options(self, options: DcSensitivityOptions) -> Self
pub fn with_options(self, options: DcSensitivityOptions) -> Self
Set sensitivity options (slack policy).
Trait Implementations§
Source§impl Clone for OtdfRequest
impl Clone for OtdfRequest
Source§fn clone(&self) -> OtdfRequest
fn clone(&self) -> OtdfRequest
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 OtdfRequest
impl Debug for OtdfRequest
Source§impl Default for OtdfRequest
impl Default for OtdfRequest
Source§fn default() -> OtdfRequest
fn default() -> OtdfRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for OtdfRequest
impl PartialEq for OtdfRequest
impl StructuralPartialEq for OtdfRequest
Auto Trait Implementations§
impl Freeze for OtdfRequest
impl RefUnwindSafe for OtdfRequest
impl Send for OtdfRequest
impl Sync for OtdfRequest
impl Unpin for OtdfRequest
impl UnsafeUnpin for OtdfRequest
impl UnwindSafe for OtdfRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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