pub struct ControlledGateBatch<R: Runtime<DType = DType>> { /* private fields */ }Expand description
Complete accepted sampled commands and separately modelled actual gate response.
Implementations§
Source§impl<R: Runtime<DType = DType>> ControlledGateBatch<R>
impl<R: Runtime<DType = DType>> ControlledGateBatch<R>
Sourcepub fn new(
controls: OperatingControlBatch<R>,
actuators: GateActuatorBatch<R>,
) -> Result<Self, StructureError>
pub fn new( controls: OperatingControlBatch<R>, actuators: GateActuatorBatch<R>, ) -> Result<Self, StructureError>
Bind fresh initial children with one sampled controller per supplied actual actuator.
Sourcepub fn controls(&self) -> &OperatingControlBatch<R>
pub fn controls(&self) -> &OperatingControlBatch<R>
Accepted command continuation, exposed immutably for explicit projections.
Sourcepub fn actuators(&self) -> &GateActuatorBatch<R>
pub fn actuators(&self) -> &GateActuatorBatch<R>
Accepted actual response, exposed immutably for operating-source frames and projections.
Sourcepub fn accepted_steps(&self) -> usize
pub fn accepted_steps(&self) -> usize
Common accepted positive-duration interval count.
Sourcepub fn next_event(&self) -> Result<Option<ControlledGateEvent>, StructureError>
pub fn next_event(&self) -> Result<Option<ControlledGateEvent>, StructureError>
Next decision, actuator arrival boundary, or common terminal boundary.
Sourcepub fn trial_to(
&self,
end_s: f64,
decision_samples: &[ControlSample],
) -> Result<ControlledGateTrial<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<ControlledGateTrial<R>, StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + ReduceOps<R> + ScalarOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R>,
Trial both children atomically, applying each endpoint command after old-target response.
Source§impl<R: Runtime<DType = DType>> ControlledGateBatch<R>
impl<R: Runtime<DType = DType>> ControlledGateBatch<R>
Sourcepub fn snapshot(&self) -> ControlledGateSnapshot<R>
pub fn snapshot(&self) -> ControlledGateSnapshot<R>
Clone both complete accepted children without derived-state array readback.
Sourcepub fn snapshot_data(
&self,
) -> Result<ControlledGateSnapshotData, StructureError>
pub fn snapshot_data( &self, ) -> Result<ControlledGateSnapshotData, StructureError>
Explicitly project complete child continuation without inventing additional historical evidence.
Source§impl<R: Runtime<DType = DType>> ControlledGateBatch<R>
impl<R: Runtime<DType = DType>> ControlledGateBatch<R>
Sourcepub fn restore(
&mut self,
snapshot: &ControlledGateSnapshot<R>,
) -> Result<(), StructureError>
pub fn restore( &mut self, snapshot: &ControlledGateSnapshot<R>, ) -> Result<(), StructureError>
Restore trusted child tensors atomically while retaining this composite’s immutable contexts.
Sourcepub fn restore_data(
&mut self,
data: &ControlledGateSnapshotData,
) -> 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: &ControlledGateSnapshotData,
) -> Result<(), StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + ReduceOps<R> + ScalarOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R>,
Check both complete child packages and their correspondence before atomically replacing either child.
Bounded checks establish continuation consistency. They establish no full historical authenticity.
Trait Implementations§
Auto Trait Implementations§
impl<R> !RefUnwindSafe for ControlledGateBatch<R>
impl<R> !UnwindSafe for ControlledGateBatch<R>
impl<R> Forget for ControlledGateBatch<R>
impl<R> Freeze for ControlledGateBatch<R>where
Arc<TensorControlledGateContext<R>>: Freeze,
OperatingControlBatch<R>: Freeze,
GateActuatorBatch<R>: Freeze,
impl<R> Move for ControlledGateBatch<R>
impl<R> Send for ControlledGateBatch<R>where
Arc<TensorControlledGateContext<R>>: Send,
OperatingControlBatch<R>: Send,
GateActuatorBatch<R>: Send,
impl<R> Sync for ControlledGateBatch<R>where
Arc<TensorControlledGateContext<R>>: Sync,
OperatingControlBatch<R>: Sync,
GateActuatorBatch<R>: Sync,
impl<R> Unpin for ControlledGateBatch<R>where
Arc<TensorControlledGateContext<R>>: Unpin,
OperatingControlBatch<R>: Unpin,
GateActuatorBatch<R>: Unpin,
impl<R> UnsafeUnpin for ControlledGateBatch<R>where
Arc<TensorControlledGateContext<R>>: UnsafeUnpin,
OperatingControlBatch<R>: UnsafeUnpin,
GateActuatorBatch<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.