[][src]Struct lrl_test_compiler::timeline::sensors::SensorsTimeline

pub struct SensorsTimeline {
    pub sensor_timelines: BTreeMap<String, SensorTimeline>,
}

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]

fn add_range_constraints(
    &mut self,
    statement_start_time: u32,
    statement_end_time: u32,
    constraints: Vec<SensorConstraint>
) -> CompilerResult<()>
[src]

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]

pub fn to_instrs(
    &mut self,
    concrete: &ConcreteTest
) -> CompilerResult<Vec<(u32, SensorInstr)>>
[src]

Trait Implementations

impl Debug for SensorsTimeline[src]

impl PartialEq<SensorsTimeline> for SensorsTimeline[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Src, Dst> LosslessTryInto<Dst> for Src where
    Dst: LosslessTryFrom<Src>, 
[src]

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]