Struct rtlola_interpreter::Monitor[][src]

pub struct Monitor<V: VerdictRepresentation = Incremental> {
    pub ir: RtLolaMir,
    // some fields omitted
}
Expand description

The Monitor accepts new events and computes streams.

The Monitor is the central object exposed by the API. It can compute event-based streams based on new events through accept_event. It can also simply advance periodic streams up to a given timestamp through accept_time. The generic argument V implements the VerdictRepresentation trait describing the outputformat of the API that is by default Incremental.

Fields

ir: RtLolaMir

Implementations

Public interface

Computes all periodic streams up through the new timestamp and then handles the input event.

The new event is therefore not seen by periodic streams up through the new timestamp.

Computes all periodic streams up through the new timestamp.

Get the name of an input stream based on its [InputReference].

The reference is valid for the lifetime of the monitor.

Get the name of an output stream based on its [OutputReference].

The reference is valid for the lifetime of the monitor.

Get the message of a trigger based on its index.

The reference is valid for the lifetime of the monitor.

Get the [OutputReference] of a trigger based on its index.

Get the number of input streams.

Get the number of output streams (this includes one output stream for each trigger).

Get the number of triggers.

Get the type of an input stream based on its [InputReference].

The reference is valid for the lifetime of the monitor.

Get the type of an output stream based on its [OutputReference].

The reference is valid for the lifetime of the monitor.

Get the extend rate of an output stream based on its [OutputReference].

The reference is valid for the lifetime of the monitor.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.