pub struct ChainExperimentData {
pub action_results: Vec<ActionResult>,
pub signal_frames: Vec<TimestampedSignalFrame>,
pub tcp_config: TCPReaderConfig,
pub action_timings: Vec<(Instant, Instant)>,
pub chain_start: Instant,
pub chain_end: Instant,
pub total_duration: Duration,
}Expand description
Experiment data for action chain execution with timing for each action
Fields§
§action_results: Vec<ActionResult>Results of each action in the chain
signal_frames: Vec<TimestampedSignalFrame>All signal frames collected during the entire chain execution
tcp_config: TCPReaderConfigTCP logger configuration for context
action_timings: Vec<(Instant, Instant)>Start and end times for each action in the chain
chain_start: InstantWhen the entire chain started
chain_end: InstantWhen the entire chain ended
total_duration: DurationDuration of entire chain execution
Implementations§
Source§impl ChainExperimentData
impl ChainExperimentData
Sourcepub fn data_during_action(
&self,
action_index: usize,
) -> Vec<&TimestampedSignalFrame>
pub fn data_during_action( &self, action_index: usize, ) -> Vec<&TimestampedSignalFrame>
Sourcepub fn data_between_actions(
&self,
action1_index: usize,
action2_index: usize,
) -> Vec<&TimestampedSignalFrame>
pub fn data_between_actions( &self, action1_index: usize, action2_index: usize, ) -> Vec<&TimestampedSignalFrame>
Sourcepub fn data_before_chain(
&self,
duration: Duration,
) -> Vec<&TimestampedSignalFrame>
pub fn data_before_chain( &self, duration: Duration, ) -> Vec<&TimestampedSignalFrame>
Sourcepub fn data_after_chain(
&self,
duration: Duration,
) -> Vec<&TimestampedSignalFrame>
pub fn data_after_chain( &self, duration: Duration, ) -> Vec<&TimestampedSignalFrame>
Sourcepub fn data_for_entire_chain(&self) -> Vec<&TimestampedSignalFrame>
pub fn data_for_entire_chain(&self) -> Vec<&TimestampedSignalFrame>
Get all signal data for the entire chain execution
§Returns
Vector of signal frames from chain start to chain end
Trait Implementations§
Source§impl Debug for ChainExperimentData
impl Debug for ChainExperimentData
Auto Trait Implementations§
impl Freeze for ChainExperimentData
impl RefUnwindSafe for ChainExperimentData
impl Send for ChainExperimentData
impl Sync for ChainExperimentData
impl Unpin for ChainExperimentData
impl UnwindSafe for ChainExperimentData
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