[−][src]Struct lrl_test_compiler::timeline::sensors::SensorsTimeline
Timeline of all sensor constraints over the whole test
endpoints vector gives the time window where the constraints
in the corresponding constraints array are active
instantaneous sensor checks are indicated by two adjacent endpoints that are equal
endpoints[0]
gives the start and endpoints[1]
gives the end time
for all sensor constraints in constraints[0]
Fields
sensor_timelines: BTreeMap<String, SensorTimeline>
Implementations
impl SensorsTimeline
[src]
pub fn new() -> Self
[src]
pub fn add_sensor_statement(
&mut self,
statement: &SensorStatement
) -> CompilerResult<()>
[src]
&mut self,
statement: &SensorStatement
) -> CompilerResult<()>
fn add_range_constraints(
&mut self,
statement_start_time: u32,
statement_end_time: u32,
constraints: Vec<SensorConstraint>
) -> CompilerResult<()>
[src]
&mut self,
statement_start_time: u32,
statement_end_time: u32,
constraints: Vec<SensorConstraint>
) -> CompilerResult<()>
Adds all provided sensor constraints into the sensor timeline with the given start and end time and inserts endpoints if necessary
fn add_endpoint_constraints(
&mut self,
statement_time: u32,
constraints: Vec<SensorConstraint>
) -> CompilerResult<()>
[src]
&mut self,
statement_time: u32,
constraints: Vec<SensorConstraint>
) -> CompilerResult<()>
pub fn to_instrs(
&mut self,
concrete: &ConcreteTest
) -> CompilerResult<Vec<(u32, SensorInstr)>>
[src]
&mut self,
concrete: &ConcreteTest
) -> CompilerResult<Vec<(u32, SensorInstr)>>
Trait Implementations
impl Debug for SensorsTimeline
[src]
impl PartialEq<SensorsTimeline> for SensorsTimeline
[src]
fn eq(&self, other: &SensorsTimeline) -> bool
[src]
fn ne(&self, other: &SensorsTimeline) -> bool
[src]
impl StructuralPartialEq for SensorsTimeline
[src]
Auto Trait Implementations
impl RefUnwindSafe for SensorsTimeline
impl Send for SensorsTimeline
impl Sync for SensorsTimeline
impl Unpin for SensorsTimeline
impl UnwindSafe for SensorsTimeline
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src]
Dst: LosslessTryFrom<Src>,
pub fn lossless_try_into(self) -> Option<Dst>
[src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]
Dst: LossyFrom<Src>,
pub fn lossy_into(self) -> Dst
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,