Skip to content

Allow users to configure connections #4

@dneimke

Description

@dneimke

An often-implemented feature in coding forms is connections. Connections help automate actions and events that might need to propagate from a source event.

Consider the following use case:

- User clicks a switch to indicate that Team A has possession
- Team B gains possession
- When the user clicks the Team B possession switch, the Team A possession switch should be off
- Likewise, when the user clicks Team A possession switch, Team B possession switch should be off
- Hence, only one of either Team A or Team B's possession switches should ever be on at the same time

In this example, a deactivate connection could be configured to ensure that only 1 switch remains active. The following psuedo-code demonstrates this:

#(name: Button A, type: switch, color: Red, tag: 1)
#(name: Button B, type: switch, color: Blue, tag: 2)
connections:
#(type: deactivate, source: 1, target: 2)
#(type: deactivate, source: 2, target: 1)

Another example is when a user wants to code events for both teams. Consider the following use case:

- User clicks a switch to indicate that Team A has scored a goal
- It should be recorded that Team B conceded a goal

In this example, an activate connection could be configured to ensure that the opposing event is recorded when the Team A goal scored event is initiated. The following pseudo-code demonstrates this:

#(name: Team 1 Goal For, color: Red, tag: 1)
#(name: Team 2 Goal Ag, tag: 2, hidden: true)
connections:
#(type: activate, source: 1, target: 2)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions