pub struct HvdcModel {
pub links: Vec<HvdcLink>,
pub dc_grids: Vec<DcGrid>,
}Expand description
Canonical HVDC namespace on crate::network::Network.
Fields§
§links: Vec<HvdcLink>Point-to-point HVDC links.
dc_grids: Vec<DcGrid>Explicit DC grids.
Implementations§
Source§impl HvdcModel
impl HvdcModel
pub fn is_empty(&self) -> bool
pub fn has_point_to_point_links(&self) -> bool
pub fn has_explicit_dc_topology(&self) -> bool
pub fn push_link(&mut self, link: HvdcLink)
pub fn push_lcc_link(&mut self, link: LccHvdcLink)
pub fn push_vsc_link(&mut self, link: VscHvdcLink)
pub fn ensure_dc_grid(&mut self, id: u32, name: Option<String>) -> &mut DcGrid
pub fn find_dc_grid(&self, id: u32) -> Option<&DcGrid>
pub fn find_dc_grid_mut(&mut self, id: u32) -> Option<&mut DcGrid>
pub fn find_dc_grid_by_bus(&self, bus_id: u32) -> Option<&DcGrid>
pub fn find_dc_grid_by_bus_mut(&mut self, bus_id: u32) -> Option<&mut DcGrid>
pub fn find_dc_bus(&self, bus_id: u32) -> Option<&DcBus>
pub fn find_dc_bus_mut(&mut self, bus_id: u32) -> Option<&mut DcBus>
pub fn dc_bus_count(&self) -> usize
pub fn dc_converter_count(&self) -> usize
pub fn dc_branch_count(&self) -> usize
pub fn next_dc_grid_id(&self) -> u32
pub fn next_dc_bus_id(&self) -> u32
pub fn clear_dc_grids(&mut self)
pub fn canonicalize_converter_ids(&mut self)
pub fn dc_buses(&self) -> impl Iterator<Item = &DcBus>
pub fn dc_buses_mut(&mut self) -> impl Iterator<Item = &mut DcBus>
pub fn dc_converters(&self) -> impl Iterator<Item = &DcConverter>
pub fn dc_converters_mut(&mut self) -> impl Iterator<Item = &mut DcConverter>
pub fn dc_branches(&self) -> impl Iterator<Item = &DcBranch>
pub fn dc_branches_mut(&mut self) -> impl Iterator<Item = &mut DcBranch>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HvdcModel
impl<'de> Deserialize<'de> for HvdcModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HvdcModel
impl RefUnwindSafe for HvdcModel
impl Send for HvdcModel
impl Sync for HvdcModel
impl Unpin for HvdcModel
impl UnsafeUnpin for HvdcModel
impl UnwindSafe for HvdcModel
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