record_raw_object: Record an Arbitrary Object During a Simulation
Description
This function records any object during a simulation to allow its
inspection afterward. The records are stored in dat[["raw.records"]]
during the simulation and in the netsim object under the
raw.records sublists.
Usage
record_raw_object(dat, at, label, object)
Value
The updated dat main list object.
Arguments
dat
Main list object containing a networkDynamic object and
other initialization information passed from netsim.
at
The time where the recording happens.
label
The name to give to the recorded object.
object
The object to be recorded.
Details
See the "Time-Varying Parameters" section of the "Working With Model
Parameters" vignette.