icyphy / ptII

Ptolemy II is an open-source software framework supporting experimentation with actor-oriented design.
https://ptolemy.eecs.berkeley.edu/ptolemyII
Other
99 stars 43 forks source link

Allow multiple connections to a non-multiport #145

Open cxbrooks opened 16 years ago

cxbrooks commented 16 years ago

Note: the issue was created automatically with bugzilla2github tool

Original bug ID: BZ#214 From: @cxbrooks Reported version: 7.1.devel CC: pt-dev@chess.eecs.berkeley.edu

cxbrooks commented 16 years ago

Ian Brown writes: "One should be able to have multiple wires connected to a single output port (a non multi-port). Currently one needs to add a little diamond junction after the port and this does not help the readability of the diagram or assist the creation of it."

This is an interesting issue that points out differences between the user view and the developer view.

For users, it should "just work" to connect multiple outputs to a single non-multiport. The user does not care that much about semantics, they just want their data to go to two actors.

However, Ptolemy developers are very concerned about semantics, and precisely what does it mean for data to go to two places. Usually the user just wants the data to be copied (cloned).

One hack would be to add a relation automatically, but that is wrong since it would make the model uglier.