Systems engineers should work with the user experience team to provide accurate models of real systems
"env"key can be set to either
"dev"mode the system will talk to the virtual systems
"prod"mode the system expects to talk to a live Engine instance.
"domain"key is used to proxy requests from your development machine to an Engine instance.
http://localhost:dev_portare proxied to the remote instance at
It is worth going over Key Concepts before continuing
power(state)accepting true or false
volume(level)accepting an integer and will modify the volume state
When building a mock system only the functions and state variables that matter need to be represented.
control.systemsact as the system IDs.
sys-b0W12represent the generic name of the drivers present in the system. These keys are an array of drivers where the position of that driver in the array defines it’s index.
$sign before the key
You only need to define functions that modify the state that you are tracking. The absence of a mock function won’t throw errors.
Presentationin the example, will communicate with devices in a system. This is achieved by providing a helper
$systemwhich provides access to the system definition.