pub struct DynamicCase { /* private fields */ }Expand description
Parsed PSS/E dynamic-model data, kept separate from a steady-state network.
Implementations§
Source§impl DynamicCase
impl DynamicCase
Sourcepub fn records(&self) -> &[DynamicRecord]
pub fn records(&self) -> &[DynamicRecord]
Dynamic model records in source order.
Sourcepub fn to_dyr_string(&self) -> &str
pub fn to_dyr_string(&self) -> &str
Return the exact source text used to construct this case.
The records are read-only, so returning the retained source cannot accidentally emit stale data after an edit.
Sourcepub fn unresolved_buses(
&self,
bus_ids: &BTreeSet<u32>,
) -> Vec<UnresolvedBusReference>
pub fn unresolved_buses( &self, bus_ids: &BTreeSet<u32>, ) -> Vec<UnresolvedBusReference>
Find references to buses absent from the supplied static-case bus IDs.
The check deliberately validates only the generic bus reference. It does not assume that every model’s second identifier is a generator ID: DYR model families use different device keys, and custom models are retained without pretending to understand their schemas.
Sourcepub fn unresolved_buses_in(
&self,
network: &BalancedNetwork,
) -> Vec<UnresolvedBusReference>
pub fn unresolved_buses_in( &self, network: &BalancedNetwork, ) -> Vec<UnresolvedBusReference>
Check generic DYR bus references against a parsed balanced network.
This deliberately does not validate device_id: there is no
model-independent rule that the second DYR key names a generator.
Trait Implementations§
Source§impl Clone for DynamicCase
impl Clone for DynamicCase
Source§fn clone(&self) -> DynamicCase
fn clone(&self) -> DynamicCase
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DynamicCase
impl Debug for DynamicCase
impl Eq for DynamicCase
Source§impl PartialEq for DynamicCase
impl PartialEq for DynamicCase
impl StructuralPartialEq for DynamicCase
Auto Trait Implementations§
impl Freeze for DynamicCase
impl RefUnwindSafe for DynamicCase
impl Send for DynamicCase
impl Sync for DynamicCase
impl Unpin for DynamicCase
impl UnsafeUnpin for DynamicCase
impl UnwindSafe for DynamicCase
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.