Module Kappa_data_structures.Operator

Compiled algebraic expression

type bin_alg_op =
  1. | MULT
  2. | SUM
  3. | DIV
  4. | MINUS
  5. | POW
  6. | MODULO
  7. | MIN
  8. | MAX
type un_alg_op =
  1. | LOG
  2. | SQRT
  3. | EXP
  4. | SINUS
  5. | COSINUS
  6. | TAN
  7. | INT
  8. | UMINUS
type state_alg_op =
  1. | CPUTIME
  2. | TIME_VAR
  3. | EVENT_VAR
  4. | NULL_EVENT_VAR
  5. | TMAX_VAR
  6. | EMAX_VAR
type bin_bool_op =
  1. | AND
  2. | OR
type un_bool_op =
  1. | NOT
type compare_op =
  1. | GREATER
  2. | SMALLER
  3. | EQUAL
  4. | DIFF

Printers

val bin_alg_op_is_prefix : bin_alg_op -> bool
val print_bin_alg_op : (Stdlib.Format.formatter -> 'a -> unit) -> 'a -> (Stdlib.Format.formatter -> 'b -> unit) -> 'b -> Stdlib.Format.formatter -> bin_alg_op -> unit
val print_un_alg_op : Stdlib.Format.formatter -> un_alg_op -> unit
val print_state_alg_op : Stdlib.Format.formatter -> state_alg_op -> unit
val print_bin_bool_op : Stdlib.Format.formatter -> bin_bool_op -> unit
val print_un_bool_op : Stdlib.Format.formatter -> un_bool_op -> unit
val print_compare_op : Stdlib.Format.formatter -> compare_op -> unit
val bin_alg_op_to_string : bin_alg_op -> string
val un_alg_op_to_string : un_alg_op -> string
val state_alg_op_to_string : state_alg_op -> string
val bin_bool_op_to_string : bin_bool_op -> string
val un_bool_op_to_string : un_bool_op -> string
val compare_op_to_string : compare_op -> string

Json

val bin_alg_op_to_json : bin_alg_op -> Yojson.Basic.t
val bin_alg_op_of_json : Yojson.Basic.t -> bin_alg_op
val un_alg_op_to_json : un_alg_op -> Yojson.Basic.t
val un_alg_op_of_json : Yojson.Basic.t -> un_alg_op
val state_alg_op_to_json : state_alg_op -> Yojson.Basic.t
val state_alg_op_of_json : Yojson.Basic.t -> state_alg_op
val bin_bool_op_to_json : bin_bool_op -> Yojson.Basic.t
val bin_bool_op_of_json : Yojson.Basic.t -> bin_bool_op
val un_bool_op_to_json : un_bool_op -> Yojson.Basic.t
val un_bool_op_of_json : Yojson.Basic.t -> un_bool_op
val compare_op_to_json : compare_op -> Yojson.Basic.t
val compare_op_of_json : Yojson.Basic.t -> compare_op

Dependencies management

type rev_dep =
  1. | ALG of int
  2. | RULE of int
  3. | MODIF of int
module DepSet : SetMap.Set with type elt = rev_dep
val print_rev_dep : Stdlib.Format.formatter -> rev_dep -> unit
val rev_dep_to_yojson : rev_dep -> Yojson.Basic.t
val rev_dep_of_yojson : Yojson.Basic.t -> rev_dep
val depset_to_yojson : DepSet.t -> Yojson.Basic.t
val depset_of_yojson : Yojson.Basic.t -> DepSet.t