package kappa-library

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Kappa_terms.ModelSource

Compiled representation of a full Kappa model

Sourcetype t
Sourceval nb_tokens : t -> int
Sourceval nb_algs : t -> int
Sourceval nb_rules : t -> int
Sourceval nb_syntactic_rules : t -> int
Sourceval nb_perturbations : t -> int
Sourceval domain : t -> Pattern.Env.t
Sourceval get_rules : t -> Primitives.elementary_rule array
Sourceval new_domain : Pattern.Env.t -> t -> t
Sourceval contact_map : t -> Contact_map.t
Sourceval counter_info : t -> int -> int -> Kappa_site_graphs.Counters_info.counter_sig option
Sourceval get_alg : t -> int -> Primitives.alg_expr
Sourceval get_perturbation : t -> int -> Primitives.perturbation
Sourceval get_rule : t -> int -> Primitives.elementary_rule
Sourceval get_ast_rule : t -> int -> LKappa.rule
Sourceval get_ast_rule_with_label : t -> int -> string Kappa_data_structures.Loc.annoted option * LKappa.rule Kappa_data_structures.Loc.annoted
Sourceval get_ast_rule_rate_pos : unary:bool -> t -> int -> Kappa_data_structures.Loc.t
Sourceval map_observables : (Primitives.alg_expr -> 'a) -> t -> 'a array
Sourceval fold_rules : (int -> 'a -> Primitives.elementary_rule -> 'a) -> 'a -> t -> 'a
Sourceval fold_ast_rules : (int -> 'a -> LKappa.rule -> 'a) -> 'a -> t -> 'a
Sourceval fold_perturbations : (int -> 'a -> Primitives.perturbation -> 'a) -> 'a -> t -> 'a
Sourceval get_alg_reverse_dependencies : t -> int -> Kappa_data_structures.Operator.DepSet.t
Sourceval get_token_reverse_dependencies : t -> int -> Kappa_data_structures.Operator.DepSet.t
Sourceval num_of_agent : string Kappa_data_structures.Loc.annoted -> t -> int
Sourceval num_of_alg : string Kappa_data_structures.Loc.annoted -> t -> int
Sourceval num_of_token : string Kappa_data_structures.Loc.annoted -> t -> int
Sourceval nums_of_rule : string -> t -> int list
Sourceval print_ast_rule : noCounters:bool -> ?env:t -> Format.formatter -> int -> unit

The int is the ast_rule_id

Sourceval print_rule : noCounters:bool -> ?env:t -> Format.formatter -> int -> unit

Same as above but the int is this time the rule_id

Sourceval print_agent : ?env:t -> Format.formatter -> int -> unit
Sourceval print_alg : ?env:t -> Format.formatter -> int -> unit
Sourceval print_token : ?env:t -> Format.formatter -> int -> unit
Sourceval print : noCounters:bool -> (t -> Format.formatter -> Primitives.alg_expr -> unit) -> (t -> Format.formatter -> Primitives.elementary_rule -> unit) -> (t -> Format.formatter -> Primitives.perturbation -> unit) -> Format.formatter -> t -> unit
Sourceval print_kappa : noCounters:bool -> (t -> Format.formatter -> Primitives.alg_expr -> unit) -> ?pr_rule:(t -> Format.formatter -> Primitives.elementary_rule -> unit) -> (t -> Format.formatter -> Primitives.perturbation -> unit) -> Format.formatter -> t -> unit
Sourceval to_yojson : t -> Yojson.Basic.t
Sourceval of_yojson : Yojson.Basic.t -> t
Sourceval check_if_counter_is_filled_enough : t -> unit
Sourceval overwrite_vars : (int * Primitives.alg_expr) list -> t -> t
Sourceval propagate_constant : warning: (pos:Kappa_data_structures.Loc.t -> (Format.formatter -> unit) -> unit) -> ?max_time:float -> ?max_events:int -> updated_vars:int list -> alg_overwrite:(int * Primitives.alg_expr) list -> t -> t

propagate_constant updated_vars overwrite_vars env

Sourceval fold_mixture_in_expr : ('a -> Pattern.id array list -> 'a) -> 'a -> t -> 'a
Sourceval unary_patterns : t -> Pattern.Set.t
OCaml

Innovation. Community. Security.