Simulation class for OSP snapshot simulations
Simulation.RdAn R6 class that represents a simulation in an OSP snapshot. A simulation references building blocks (compounds, events, formulations, observer sets, observed data, protocols, plus exactly one of an individual or a population) and binds them together with a solver configuration, an output schema, and parameter overrides.
Subject type
Exactly one of Individual / Population must be non-empty. Setting
or clearing one through the active bindings is the user's
responsibility; the initialiser only checks the inbound raw data.
Passthrough fields
Four fields are preserved byte-equivalent from the input rather than
parsed: Interactions, AlteredBuildingBlocks, IndividualAnalyses,
and PopulationAnalyses. They survive round-trip without modelling.
Active bindings
dataThe raw data of the simulation (read-only). Rebuilt from the nested caches so that mutations on wrapped objects flow back to the export payload. Passthrough fields are preserved byte-equivalent.
nameThe name of the simulation.
descriptionFree-text description of the simulation.
modelThe PK-Sim model used to build the simulation (e.g.
"4Comp").allow_agingWhether the simulation allows aging. Writable: a single logical value, or
NULLto clear.individualName of the individual building block (or
NULLfor a population simulation).populationName of the population building block (or
NULLfor an individual simulation).solverThe SolverSettings object.
output_schemaThe OutputSchema object.
compoundsList of CompoundProperties objects.
eventsList of EventSelection objects.
observer_setsList of ObserverSetSelection objects.
observed_data_namesCharacter vector of observed-data building-block names referenced by this simulation.
output_selectionsCharacter vector of output quantity paths selected for reporting.
output_mappingsList of OutputMapping objects.
parametersNamed list of LocalizedParameter objects (keyed by path) overriding parameters in the simulation's tree.
advanced_parametersList of AdvancedParameter objects (population simulations only).