-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevent.mli
31 lines (26 loc) · 962 Bytes
/
event.mli
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
open Yojson
type c =
(((int*int) list * Pattern.cc * Pattern.id) list * (* the context *)
((int*int) list * Pattern.cc * Pattern.id) list * (* the lhs of the rule *)
(int * int) list * (* the morphism abstract_event -> concrete_event *)
(*((int * int) list* Pattern.id) list * *)
(* the morphisms ccs_rule -> abstract_event *)
(Instantiation.concrete Instantiation.action list))
(*the actions - used to detect negative influence btw rules*)
type t = {
event_id : int;
rule_id : int;
event_label : string;
step : Trace.step ;
mutable concrete : c option
}
val nodes_of_json : Model.t option -> Yojson.Basic.json -> t
val id : t -> int
val label : t -> string
val step : t -> Trace.step
val rule_id : t -> int
val concrete : t -> c option
val print_event : t -> unit
val set_concrete :
Model.t -> Pattern.Env.t -> Signature.s -> t ->
((int*int) list * Pattern.cc * Pattern.id) list -> c