Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ library ETL is {
// Operators on clocks
// Filter clock ticks inside a time period
Operator [ Clock ] Clock C 'inside' Period P
= C filter (tick C >= P start) and (tick C <= P end);
= C filter (tick C.element >= P start) and (tick C.element <= P end);

// Count the occurrences of events inside a time period
Operator [ Integer ] 'count' Clock C 'inside' Period P = card (C 'inside' P);
Expand All @@ -37,15 +37,15 @@ library ETL is {
// Operators for the evaluation of requirements
// Check
Operator [ Boolean ] 'check' Boolean phi 'over' Periods P
= and ('evaluate' phi 'over' P);
= and ('evaluate' phi 'over' P.element);

// Evaluate
Operator [ Boolean ] 'evaluate' Boolean phi 'over' Period P
= integrate (('decide' phi 'over' P) * phi) on P;

// Decide
// Operator 'decide' is
Operator [ Boolean ] 'decide' Boolean phi 'over' Period P = phi 'or' (P end));
Operator [ Boolean ] 'decide' Boolean phi 'over' Period P = phi 'or' (new Boolean (P end));

Category c1 is Category increasing1
= { (>, >), (>=, >=), (<, >=), (<=, >), (==, >), (<>, >) };
Expand Down
Loading