You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, actions are implemented as either a plain english string or an integer. This has the advantage of meaning that all leaf elements must be an action.
However, an action could be an object specifying type, interaction mode, action code, and descriptions. For example:
{
"name": "Doors Open",
"code": "#000003",
"interaction_mode": "Press and hold",
"description": "Prevent doors from automatically closing."
}
Action objects could provide the following benefits:
Actions with similar names but different contexts can be uniquely identified by their code.
Interface devices can handle and/or display different interaction modes pre-emptively. This could allow users to make all Press and Hold actions to become toggle if it is better suited to their access needs.
Devices could provide unique descriptions. However these would break localisation.
Action objects could have the following disadvantages:
Less clear where leaf nodes are in the schema.
More to write in a specification.
If actions do become objects, then the following needs to be considered:
While name and codemust be coupled, should interaction_mode also be coupled to code?
The text was updated successfully, but these errors were encountered:
Currently,
actions
are implemented as either a plain english string or an integer. This has the advantage of meaning that all leaf elements must be an action.However, an action could be an object specifying type, interaction mode, action code, and descriptions. For example:
Action objects could provide the following benefits:
Press and Hold
actions to becometoggle
if it is better suited to their access needs.Action objects could have the following disadvantages:
If actions do become objects, then the following needs to be considered:
name
andcode
must be coupled, shouldinteraction_mode
also be coupled tocode
?The text was updated successfully, but these errors were encountered: