#[non_exhaustive]pub struct SwitchedShuntControl {
pub mode: SwitchedShuntMode,
pub vhigh: f64,
pub vlow: f64,
pub control_bus: Option<BusId>,
pub rmpct: f64,
pub blocks: Vec<ShuntBlock>,
}Expand description
Switching-control data for a switched shunt (Shunt::control): the mode,
the regulated voltage band and bus, the reactive-range percentage, and the
adjustable susceptance blocks. The shunt’s b is the initial
value within the blocks’ total range.
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.mode: SwitchedShuntMode§vhigh: f64Regulated voltage band (per unit).
vlow: f64§control_bus: Option<BusId>The regulated bus; None means the shunt regulates its own bus.
rmpct: f64Percent of the controlled device’s reactive range to apply (PSS/E RMPCT).
blocks: Vec<ShuntBlock>Implementations§
Source§impl SwitchedShuntControl
impl SwitchedShuntControl
pub fn new( mode: SwitchedShuntMode, vhigh: f64, vlow: f64, blocks: Vec<ShuntBlock>, ) -> SwitchedShuntControl
Trait Implementations§
Source§impl Clone for SwitchedShuntControl
impl Clone for SwitchedShuntControl
Source§fn clone(&self) -> SwitchedShuntControl
fn clone(&self) -> SwitchedShuntControl
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 SwitchedShuntControl
impl Debug for SwitchedShuntControl
Source§impl<'de> Deserialize<'de> for SwitchedShuntControl
impl<'de> Deserialize<'de> for SwitchedShuntControl
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SwitchedShuntControl, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SwitchedShuntControl, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SwitchedShuntControl
impl Serialize for SwitchedShuntControl
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
Auto Trait Implementations§
impl Freeze for SwitchedShuntControl
impl RefUnwindSafe for SwitchedShuntControl
impl Send for SwitchedShuntControl
impl Sync for SwitchedShuntControl
impl Unpin for SwitchedShuntControl
impl UnsafeUnpin for SwitchedShuntControl
impl UnwindSafe for SwitchedShuntControl
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