open-simulation-platform / osp-validator

Ontology-based systems structure validator
Mozilla Public License 2.0
4 stars 1 forks source link

Make bonds directional #39

Closed kyllingstad closed 4 years ago

kyllingstad commented 5 years ago

Currently, bonds are nondirectional, unlike plugs, sockets and variables. I hereby suggest that we make them directional. This would simplify all the code that deals with them, as it no longer has to be "smart" when it matches plugs and sockets in a bond connection. GUIs that show connections in a block diagram will automatically know which side of a block to put the connectors on.

The cost to users would be minimal; they just have to be a bit more explicit when defining their bonds.

Since bonds have mixed causality, the assignment of "direction" would of course be arbitrary, and the hard part is to find good names for the two directions. As a first suggestion, we could use "left" and "right" or "A" and "B".