Remark. Requirement context motivation [0011]
It's worth discussing the motivation for each of the components of a requirement context.
- The capability set \Delta is used to record capabilities needed to execute certain commands, use certain language constructs, and so on.
The device set D is used to record specific devices required by a
requiredirective. For example, theboatdevice confers the capability to traverse water, and does not correspond to a specific command or language construct, so the programmer needs a way to require it specifically. Also, since multiple devices may provide a given capability, the programmer may have reasons for requiring a specific device rather than letting the system choose.One might still wonder why we need both \Delta and D; wouldn't it be simpler to just have a set of required devices D? However, since the relationship between devices and capabilities can be many-to-many, we cannot reliably pick a concrete device for a required capability in a nicely compositional way. We prefer to wait until the last possible minute to pick a concrete set of devices to provide a given set of capabilities (using the provisioning oracle).
- The inventory I has several purposes. One is simply to record inventory required by a
stockdirective. For example,stock 10 "rock"requires a robot to have 10 rocks in its inventory. More importantly, however, thebuildcommand (which constructs a robot to execute a given program) turns device requirements into inventory requirements. That is, if executing programPrequires having device d equipped, then executingbuild {P}will require possessing d in the inventory (in order to equip the device on the newly constructed robot).