Formulations
Formulation.RdDescription of a formulation
Active bindings
TypeType of Formulation
NameName of formulation
ParametersParameters of the formulation
Methods
Method new()
Initialize a new instance of the class Formulation
Usage
Formulation$new(type, name = "Formulation")Method addParameter()
Add a new property/parameter for the formulation
Usage
Formulation$addParameter(
name,
parName,
dimension,
value = 0,
unit = NULL,
enum = NULL,
check = NULL,
pathPrefix = NULL
)Arguments
nameName of the property to add.
parNameCorresponding parameter name of the property to add in the simulation
dimensionDimension of the property to add.
valueValue for the property.
unit(Optional) Unit to use for the property. If not given, it is assumed to be the baseUnit of the dimension.
enum(Optional) Name list mapping user friendly values to PK-Sim allowed values.
check(Optional) Function to check the validity of the supplied value for the property.
pathPrefixCorresponding path in the simulation pkml of the property to add. Default to
{protocolPrefix}|{formulationName}
Method getAllPropertyPaths()
Get the paths of all parameters defined for the formulation, using protocolName and formulationName
Method print()
Print the object to the console