Kappa_runtime.Data
type snapshot = {
snapshot_event : int;
snapshot_time : float;
snapshot_agents : (int * Kappa_site_graphs.User_graph.connected_component) list;
snapshot_tokens : (string * Kappa_data_structures.Nbr.t) array;
}
type din_data = {
din_kind : Kappa_terms.Primitives.din_kind;
din_start : float;
din_hits : int array;
din_fluxs : float array array;
}
type t =
| DIN of string * din
| DeltaActivities of int * (int * (float * float)) list
| Plot of Kappa_data_structures.Nbr.t array
Must have length >= 1 (at least T
or E
)
| Print of file_line
| TraceStep of Trace.step
| Snapshot of string * snapshot
| Log of string
| Species of string * float * Kappa_site_graphs.User_graph.connected_component
| Warning of Kappa_data_structures.Loc.t option * Stdlib.Format.formatter -> unit
val print_snapshot : ?uuid:int -> Stdlib.Format.formatter -> snapshot -> unit
val print_dot_snapshot :
?uuid:int ->
Stdlib.Format.formatter ->
snapshot ->
unit
val string_of_snapshot : ?len:int -> snapshot -> string
Serialize a value of type snapshot
into a JSON string.
val read_snapshot : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> snapshot
Input JSON data of type snapshot
.
val print_dot_din : ?uuid:int -> Stdlib.Format.formatter -> din -> unit
val print_html_din : Stdlib.Format.formatter -> din -> unit
val add_plot_line : Kappa_data_structures.Nbr.t array -> plot -> plot
val init_plot : Kappa_terms.Model.t -> plot
val read_plot : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> plot
Input JSON data of type plot
.
val export_plot : is_tsv:bool -> plot -> string
val print_initial_inputs :
?uuid:int ->
Kappa_terms.Configuration.t ->
Kappa_terms.Model.t ->
Stdlib.Format.formatter ->
(Kappa_terms.Primitives.alg_expr * Kappa_terms.Primitives.elementary_rule)
list ->
unit
val print_warning :
?pos:Kappa_data_structures.Loc.t ->
Stdlib.Format.formatter ->
(Stdlib.Format.formatter -> unit) ->
unit