GridElement

Trait GridElement 

Source
pub trait GridElement: Send + Sync {
    // Required methods
    fn element_type(&self) -> &'static str;
    fn apply(&self, state: &mut StateStore);
}
Expand description

Trait for grid elements (buses, branches, generators, loads)

Required Methods§

Source

fn element_type(&self) -> &'static str

Element type name for debugging

Source

fn apply(&self, state: &mut StateStore)

Apply element’s contribution to the state

Implementors§