Designing the connector MassPort
- Flow variable dm:
- the value of the flow
- Flow component computes dm
- Reservoir integrates dm to get its state
variable m
- Potential variable data:
- information about state of a Reservoir
- Flow uses it to compute dm
- Input/output variable info:
- integer to tell what to do with data
- three possibilites
- ignore data
- set flow to data
- limit flow by data
- output at Reservoir, input at Flow → two
variants MassPortR,
MassPortF
- Simple alternative:
- no flow or potential variables at all
- dm is input/output from Flow to Reservoir
- data is input/output from Reservoir to
Flow