pub struct PowerBudgetAnalysis<'a, O: Origin, R: ReferenceFrame, E> { /* private fields */ }Expand description
Computes eclipse intervals, beta angles, and solar flux for spacecraft in a scenario.
Generic over origin O, reference frame R, and ephemeris E.
The shadow model is cylindrical (umbra only) — penumbra is not modelled.
Implementations§
Source§impl<'a, O, R, E> PowerBudgetAnalysis<'a, O, R, E>where
O: TrySpheroid + TryMeanRadius + Copy + Send + Sync + Into<DynOrigin>,
R: ReferenceFrame + Copy + Send + Sync,
E: Ephemeris + Send + Sync,
E::Error: 'static,
impl<'a, O, R, E> PowerBudgetAnalysis<'a, O, R, E>where
O: TrySpheroid + TryMeanRadius + Copy + Send + Sync + Into<DynOrigin>,
R: ReferenceFrame + Copy + Send + Sync,
E: Ephemeris + Send + Sync,
E::Error: 'static,
Sourcepub fn new(
scenario: &'a Scenario<O, R>,
ensemble: &'a Ensemble<AssetId, Tai, O, R>,
ephemeris: &'a E,
) -> Self
pub fn new( scenario: &'a Scenario<O, R>, ensemble: &'a Ensemble<AssetId, Tai, O, R>, ephemeris: &'a E, ) -> Self
Creates a new power-budget analysis.
Sourcepub fn with_step(self, step: TimeDelta) -> Self
pub fn with_step(self, step: TimeDelta) -> Self
Sets the time step for sampling and event detection.
Sourcepub fn with_filter(self, filter: SpacecraftFilter) -> Self
pub fn with_filter(self, filter: SpacecraftFilter) -> Self
Restricts the analysis to a subset of spacecraft.
See SpacecraftFilter for the available filter modes.
Sourcepub fn compute(&self) -> Result<PowerBudgetResults, PowerError>
pub fn compute(&self) -> Result<PowerBudgetResults, PowerError>
Compute the power-budget analysis for all (or filtered) spacecraft in the scenario.
Auto Trait Implementations§
impl<'a, O, R, E> Freeze for PowerBudgetAnalysis<'a, O, R, E>
impl<'a, O, R, E> RefUnwindSafe for PowerBudgetAnalysis<'a, O, R, E>
impl<'a, O, R, E> Send for PowerBudgetAnalysis<'a, O, R, E>
impl<'a, O, R, E> Sync for PowerBudgetAnalysis<'a, O, R, E>
impl<'a, O, R, E> Unpin for PowerBudgetAnalysis<'a, O, R, E>
impl<'a, O, R, E> UnsafeUnpin for PowerBudgetAnalysis<'a, O, R, E>
impl<'a, O, R, E> UnwindSafe for PowerBudgetAnalysis<'a, O, R, E>
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
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.