package kappa-library

  1. Overview
  2. Docs
Public internals of the Kappa tool suite. Use this package to use kappa as a lib

Install

Dune Dependency

Authors

Maintainers

Sources

v4.1.3.tar.gz
md5=1c9a8a0d79f085757817f90834e166f5
sha512=13ac40442940ba6e72d7dc5bf952e67443872f7bff63e9c76a3a699a6904c88696047fe04519b7ec6546371642f6ee7b0983117be302694aca15500b0df40de3

doc/kappa-library.runtime/Kappa_runtime/Replay/index.html

Module Kappa_runtime.ReplaySource

Utilities to make mixtures from traces

Sourcetype state = {
  1. graph : Kappa_site_graphs.Edges.t;
  2. time : float;
  3. event : int;
  4. connected_components : Kappa_site_graphs.Agent.SetMap.Set.t Kappa_data_structures.Mods.IntMap.t option;
}
Sourcetype summary = {
  1. unary_distances : (int * int) option;
}
Sourceval init_state : with_connected_components:bool -> state
  • returns

    the new state and, if the step was an unary instance of a binary rule, the id of the rule and the distance between its 2 connected patterns.

Sourceval is_step_triggerable : state -> Trace.step -> bool

determines whether or not a step can be applied from a given state.

Sourceval is_step_triggerable_on_edges : Kappa_site_graphs.Edges.t -> Trace.step -> bool

same function but takes a graph of type Edges.t directly.

exported for convenience.

Sourceval cc_of_state : debug_mode:bool -> state -> Kappa_terms.Pattern.PreEnv.t -> Kappa_terms.Pattern.PreEnv.t * ((int * int) list * Kappa_terms.Pattern.cc * Kappa_terms.Pattern.id) list
OCaml

Innovation. Community. Security.