1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//! # mstlo - Online Signal Temporal Logic
//!
//! `mstlo` provides runtime and macro-based tooling to parse, build, and execute
//! Signal Temporal Logic (STL) monitors over streaming data.
//!
//! It includes:
//! - a high-level monitor builder API,
//! - incremental evaluation backend,
//! - multiple semantics (qualitative, quantitative, RoSI), and
//! - optional multi-signal synchronization/interpolation.
//!
//! ## Simple usage
//!
//! ```
//! use mstlo::monitor::*;
//! use mstlo::{step, stl};
//!
//! // Build a monitor from the macro DSL.
//! let formula = stl!(G[0, 1](x > 5.0));
//! let mut monitor = StlMonitor::builder()
//! .formula(formula)
//! .algorithm(Algorithm::Incremental)
//! .semantics(DelayedQuantitative)
//! .build()
//! .unwrap();
//!
//! // Stream updates
//! let out1 = monitor.update(&step!("x", 7.0, 0s));
//! let out2 = monitor.update(&step!("x", 6.0, 1s));
//! let out3 = monitor.update(&step!("x", 4.0, 2s));
//! let out4 = monitor.update(&step!("x", 7.0, 3s));
//!
//! assert_eq!(out1.verdicts(), vec![]);
//! assert_eq!(out2.verdicts(), vec![step!("x", 1.0, 0s)]);
//! assert_eq!(out3.verdicts(), vec![step!("x", -1.0, 1s)]);
//! assert_eq!(out4.verdicts(), vec![step!("x", -1.0, 2s)]);
//! ```
//!
// Enable use of ::mstlo:: paths within this crate for the proc-macro
extern crate self as mstlo;
pub use ;
pub use FormulaDefinition;
pub use get_formulas;
pub use ;
pub use ;
pub use ;
pub use GLOBAL_CACHE_SIZE;
pub use ;
pub use ;
pub use ;