Retrieve all parameters of a container (simulation or container instance) matching the given path criteria
Source:R/utilities-parameter.R
getAllParametersMatching.RdRetrieve all parameters of a container (simulation or container instance) matching the given path criteria
Value
A list of parameters matching the path criteria. The list is empty if no parameters matching were found.
See also
loadSimulation(), getContainer() and getAllContainersMatching() to retrieve objects of type Container or Simulation
Examples
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
# Return all `Volume` parameters defined in all direct containers of the organism
params <- getAllParametersMatching("Organism|*|Volume", sim)
# Return all `Volume` parameters defined in all direct containers of the organism
# and the parameter 'Weight (tissue)' of the container 'Liver'
paths <- c("Organism|*|Volume", "Organism|Liver|Weight (tissue)")
params <- getAllParametersMatching(paths, sim)
# Returns all `Volume` parameters defined in `Organism` and all its subcontainers
params <- getAllParametersMatching("Organism|**|Volume", sim)