hydr_structures/structures/controlled_gate/
trial.rs1use super::ControlledGateBatch;
4use crate::structures::{GateActuatorBatch, OperatingControlBatch};
5use numr::dtype::DType;
6use numr::runtime::Runtime;
7
8#[derive(Clone, Debug)]
10pub struct ControlledGateTrial<R: Runtime<DType = DType>> {
11 pub(crate) next: ControlledGateBatch<R>,
12}
13
14impl<R: Runtime<DType = DType>> ControlledGateTrial<R> {
15 pub fn controls(&self) -> &OperatingControlBatch<R> {
17 self.next.controls()
18 }
19
20 pub fn actuators(&self) -> &GateActuatorBatch<R> {
22 self.next.actuators()
23 }
24
25 pub fn into_next(self) -> ControlledGateBatch<R> {
27 self.next
28 }
29}