pub struct OperatingControlBatch<R: Runtime<DType = DType>> { /* private fields */ }Expand description
Complete sampled command continuation without hydraulic or actuator advancement.
Implementations§
Source§impl<R: Runtime<DType = DType>> OperatingControlBatch<R>
impl<R: Runtime<DType = DType>> OperatingControlBatch<R>
Sourcepub fn elements(&self) -> &[StructureElement]
pub fn elements(&self) -> &[StructureElement]
Complete immutable actual structure definitions.
Sourcepub fn definitions(&self) -> &[OperatingControlDefinition]
pub fn definitions(&self) -> &[OperatingControlDefinition]
Original ordered controlled subset.
Sourcepub fn initial_states(&self) -> &[ControlInitialState]
pub fn initial_states(&self) -> &[ControlInitialState]
Complete original assumed antecedents.
Sourcepub fn schedule(&self) -> &ControlDecisionSchedule
pub fn schedule(&self) -> &ControlDecisionSchedule
Complete original future decision schedule.
Sourcepub fn timing(&self) -> &SampledControlTiming
pub fn timing(&self) -> &SampledControlTiming
Original sampled applicability and timing bounds.
Sourcepub fn accepted_steps(&self) -> usize
pub fn accepted_steps(&self) -> usize
Accepted original interval count.
Sourcepub fn next_event(&self) -> Option<ControlEvent>
pub fn next_event(&self) -> Option<ControlEvent>
Next original decision or terminal support boundary.
Sourcepub fn commands(&self) -> Result<Vec<ControlCommandOutput>, StructureError>
pub fn commands(&self) -> Result<Vec<ControlCommandOutput>, StructureError>
Explicitly project commands without claiming physical device response.
Sourcepub fn states(&self) -> Result<Vec<ControlState>, StructureError>
pub fn states(&self) -> Result<Vec<ControlState>, StructureError>
Explicitly project every continuation-relevant controller value.
Sourcepub fn last_step(
&self,
) -> Result<Option<ControlStepDiagnostics>, StructureError>
pub fn last_step( &self, ) -> Result<Option<ControlStepDiagnostics>, StructureError>
Explicitly project the bounded last accepted interval.
Sourcepub fn trial_to(
&self,
end_s: f64,
decision_samples: &[ControlSample],
) -> Result<OperatingControlTrial<R>, StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + ReduceOps<R> + ScalarOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R>,
pub fn trial_to(
&self,
end_s: f64,
decision_samples: &[ControlSample],
) -> Result<OperatingControlTrial<R>, StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + ReduceOps<R> + ScalarOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R>,
Trial an interval without crossing an unprocessed decision or modifying accepted state.
Source§impl<R: Runtime<DType = DType>> OperatingControlBatch<R>
impl<R: Runtime<DType = DType>> OperatingControlBatch<R>
Sourcepub fn snapshot(&self) -> OperatingControlSnapshot<R>
pub fn snapshot(&self) -> OperatingControlSnapshot<R>
Clone complete trusted continuation without state projection.
Sourcepub fn snapshot_data(
&self,
) -> Result<OperatingControlSnapshotData, StructureError>
pub fn snapshot_data( &self, ) -> Result<OperatingControlSnapshotData, StructureError>
Explicitly project every value required for equivalent future continuation.
Source§impl<R: Runtime<DType = DType>> OperatingControlBatch<R>
impl<R: Runtime<DType = DType>> OperatingControlBatch<R>
Sourcepub fn restore(
&mut self,
snapshot: &OperatingControlSnapshot<R>,
) -> Result<(), StructureError>
pub fn restore( &mut self, snapshot: &OperatingControlSnapshot<R>, ) -> Result<(), StructureError>
Restore trusted tensor continuation while retaining this batch’s complete original bound context.
Sourcepub fn restore_data(
&mut self,
data: &OperatingControlSnapshotData,
) -> Result<(), StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + ReduceOps<R> + ScalarOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R>,
pub fn restore_data(
&mut self,
data: &OperatingControlSnapshotData,
) -> Result<(), StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + ReduceOps<R> + ScalarOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R>,
Check complete caller-owned continuation before atomically replacing accepted values.
Trait Implementations§
Auto Trait Implementations§
impl<R> !RefUnwindSafe for OperatingControlBatch<R>
impl<R> !UnwindSafe for OperatingControlBatch<R>
impl<R> Forget for OperatingControlBatch<R>
impl<R> Freeze for OperatingControlBatch<R>
impl<R> Move for OperatingControlBatch<R>
impl<R> Send for OperatingControlBatch<R>
impl<R> Sync for OperatingControlBatch<R>
impl<R> Unpin for OperatingControlBatch<R>
impl<R> UnsafeUnpin for OperatingControlBatch<R>where
Arc<TensorControlContext<R>>: UnsafeUnpin,
TensorControlState<R>: UnsafeUnpin,
Option<Arc<TensorControlStep<R>>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.