Create an object for containing a compartmental model.
Arguments
- model_directory
String giving a path to a directory containing the following files,
variables.csv,derivations.json,flows.csv, andsettings.json, described by this spec.
Value
An object with the following methods and fields.
Methods
$variables$all():Partitionobject of all variables.$flows(): Data frame with rows giving all groups of flows.$flows_expanded(): Data frame with rows giving all individual flows.$variables$state():Partitionobject of all state variables.$variables$flow():Partitionobject of all flow variables.$all_labels(): Character vector giving the labels of all variables.$labels$state(): Character vector giving the labels of all state variables.$labels$flow(): Character vector giving the labels of all flow variables.$labels$other(): Character vector giving the labels of all variables that are neither state nor flow variables.$expr_list():ExprListobject containing all expressions.
Fields
$def: TheModelFilesobject representing the directory that defines the model.$simulators: ASimulatorsinstance containing methods for generating simulators, which are objects that can generate simulations from the model.