pub struct TapRegulation {
pub transformer: usize,
pub controlled_bus: usize,
pub mode: RegulationMode,
pub target: f64,
pub deadband: f64,
pub enabled: bool,
pub id: String,
}Expand description
One regulating control, resolved against gridoxide’s own indices.
Fields§
§transformer: usizeIndex into the transformers slice — not a flat branch index.
controlled_bus: usizeThe bus whose voltage is held. Meaningful for
RegulationMode::Voltage; carried for both so a report can name it.
mode: RegulationMode§target: f64Set-point, per-unit.
deadband: f64Full width, per-unit. The controller is satisfied within ±deadband/2.
Zero means “hit the target exactly”, which in practice means hunt until
the direction budget stops it.
enabled: boolTapChanger.controlEnabled AND RegulatingControl.enabled. A control
that exists but is off is data, not an error.
id: StringThe element’s own identifier, for reports.
Trait Implementations§
Source§impl Clone for TapRegulation
impl Clone for TapRegulation
Auto Trait Implementations§
impl Freeze for TapRegulation
impl RefUnwindSafe for TapRegulation
impl Send for TapRegulation
impl Sync for TapRegulation
impl Unpin for TapRegulation
impl UnsafeUnpin for TapRegulation
impl UnwindSafe for TapRegulation
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
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,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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