Systems engineers should work with the user experience team to provide accurate models of real systems
"env"
key can be set to either "dev"
or "prod"
"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_port
are proxied to the remote instance at "domain"
It is worth going over Key Concepts before continuing
sys-b0W12
)Presentation_1
)Display_1
)Display_2
)Switcher_1
)Lighting_1
)power(state)
accepting true or falsevolume(level)
accepting an integer and will modify the volume stateWhen building a mock system only the functions and state variables that matter need to be represented.
window
object at window.control.systems
control.systems
act as the system IDs.sys-b0W12
represent 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 keythis
.You only need to define functions that modify the state that you are tracking. The absence of a mock function won’t throw errors.
Presentation
in the example, will communicate with devices in a system. This is achieved by providing a helper $system
which provides access to the system definition.