NoPCM and SWHS have many quantities with constraints that they are bounded between a minimum and maximum value. These minimum and maximum values are defined as QDefinitions and are constant. They need to be included in the constants field of the SystemInformation so that code generation knows their values.
Drasil should automatically collect such constant QDefinitions used in constraint bounds and automatically add them to the constants field of SystemInformation. All constrained values are already included in the constraints field of SystemInformation, so we could check each constraint to see if it refers to a quantity whose definition is simply a value (i.e. a constant).
More generally, we could do the same for all Exprs present in an example, not just in constraints, making the constants field of SystemInformation fully automated.
NoPCM and SWHS have many quantities with constraints that they are bounded between a minimum and maximum value. These minimum and maximum values are defined as
QDefinition
s and are constant. They need to be included in theconstants
field of theSystemInformation
so that code generation knows their values.Drasil should automatically collect such constant
QDefinition
s used in constraint bounds and automatically add them to theconstants
field ofSystemInformation
. All constrained values are already included in theconstraints
field ofSystemInformation
, so we could check each constraint to see if it refers to a quantity whose definition is simply a value (i.e. a constant).More generally, we could do the same for all
Expr
s present in an example, not just in constraints, making theconstants
field ofSystemInformation
fully automated.