Skip to content
Snippets Groups Projects
process.mli 711 B
Newer Older
(* Time-stamp: <modified the 02/04/2019 (at 14:39) by Erwan Jahier> *)
erwan's avatar
erwan committed

(** There is such a Process.t per node in the dot file. *)
erwan's avatar
erwan committed
type t = {
  pid : string; (* unique *)
  variables : Algo.vars;
  init : Algo.neighbor list -> Algo.local_env;
  enable : Algo.enable_fun;
  step : Algo.step_fun;
erwan's avatar
erwan committed
}

(** [make custom_mode_flag node] builds a process out of a dot
   node. To do that, it retreives the registered functions by Dynamic
   linking of the cmxs file specified in the "algo" field of the dot
   node.

    nb: it provides variable initial values if not done in the dot
   (via the init field) nor in the Algo (via Algo.reg_init_vars) *)
val make: bool -> Topology.node -> t