Struct rtlola_frontend::mir::RtLolaMir[][src]

pub struct RtLolaMir {
    pub inputs: Vec<InputStream>,
    pub outputs: Vec<OutputStream>,
    pub time_driven: Vec<TimeDrivenStream>,
    pub event_driven: Vec<EventDrivenStream>,
    pub discrete_windows: Vec<DiscreteWindow>,
    pub sliding_windows: Vec<SlidingWindow>,
    pub triggers: Vec<Trigger>,
}
Expand description

This struct constitutes the Mid-Level Intermediate Representation (MIR) of an RTLola specification.

The RtLolaMir is specifically designed to allow convenient navigation and access to data. Hence, it is perfect for working with the specification rather than work on it.

Most Notable Structs and Enums

  • Stream is a trait offering several convenient access methods for everything constituting a stream.
  • OutputStream represents a single output stream. The data structure is enriched with information regarding streams accessing it or accessed by it and much more. For input streams confer InputStream.
  • StreamReference used for referencing streams within the Mir.
  • InstanceTemplate contains all information regarding the parametrization and spawning behavior of streams.
  • Expression represents an expression. It contains its ExpressionKind and its type. The latter contains all information specific to a certain kind of expression such as sub-expressions of operators.

See Also

Fields

inputs: Vec<InputStream>

Contains all input streams.

outputs: Vec<OutputStream>

Contains all output streams including all triggers. They only contain the information relevant for every single kind of output stream. Refer to RtLolaMir::time_driven, RtLolaMir::event_driven, and RtLolaMir::triggers for more information.

time_driven: Vec<TimeDrivenStream>

References and pacing information of all time-driven streams.

event_driven: Vec<EventDrivenStream>

References and pacing information of all event-driven streams.

discrete_windows: Vec<DiscreteWindow>

A collection of all discrete windows.

sliding_windows: Vec<SlidingWindow>

A collection of all sliding windows.

triggers: Vec<Trigger>

References and message information of all triggers.

Implementations

impl RtLolaMir[src]

pub fn input_refs(&self) -> impl Iterator<Item = InputReference>[src]

Returns a collection containing a reference to each input stream in the specification.

pub fn output_refs(&self) -> impl Iterator<Item = OutputReference>[src]

Returns a collection containing a reference to each output stream in the specification.

pub fn input_mut(&mut self, reference: StreamReference) -> &mut InputStream[src]

Provides mutable access to an input stream.

Panic

Panics if reference is a StreamReference::Out.

pub fn input(&self, reference: StreamReference) -> &InputStream[src]

Provides immutable access to an input stream.

Panic

Panics if reference is a StreamReference::Out.

pub fn output_mut(&mut self, reference: StreamReference) -> &mut OutputStream[src]

Provides mutable access to an output stream.

Panic

Panics if reference is a StreamReference::In.

pub fn output(&self, reference: StreamReference) -> &OutputStream[src]

Provides immutable access to an output stream.

Panic

Panics if reference is a StreamReference::In.

pub fn all_streams(&self) -> impl Iterator<Item = StreamReference>[src]

Produces an iterator over all stream references.

pub fn all_triggers(&self) -> Vec<&OutputStream>[src]

Provides a collection of all output streams representing a trigger.

pub fn all_event_driven(&self) -> Vec<&OutputStream>[src]

Provides a collection of all event-driven output streams.

pub fn all_time_driven(&self) -> Vec<&OutputStream>[src]

Provides a collection of all time-driven output streams.

pub fn get_ac(&self, sref: StreamReference) -> Option<&ActivationCondition>[src]

Provides the activation contion of a event-driven stream and none if the stream is time-driven

pub fn discrete_window(&self, window: WindowReference) -> &DiscreteWindow[src]

Provides immutable access to a discrete window.

Panic

Panics if window is a WindowReference::Sliding.

pub fn sliding_window(&self, window: WindowReference) -> &SlidingWindow[src]

Provides immutable access to a sliding window.

Panic

Panics if window is a WindowReference::Discrete.

pub fn get_event_driven_layers(&self) -> Vec<Vec<OutputReference>>[src]

Provides a representation for the evaluation layers of all event-driven output streams. Each element of the outer Vec represents a layer, each element of the inner Vec an output stream in the layer.

pub fn compute_schedule(&self) -> Result<Schedule, String>[src]

Attempts to compute a schedule for all time-driven streams.

Fail

Fails if the resulting schedule would require at least 10^7 deadlines.

Trait Implementations

impl Clone for RtLolaMir[src]

fn clone(&self) -> RtLolaMir[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for RtLolaMir[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl PartialEq<RtLolaMir> for RtLolaMir[src]

fn eq(&self, other: &RtLolaMir) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &RtLolaMir) -> bool[src]

This method tests for !=.

impl StructuralPartialEq for RtLolaMir[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.