Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • Is it me or do you have all of the interface symbols backwards in the second diagram? Commented Nov 7, 2019 at 11:58
  • That's the point. All output ports are represented as interface realization and all input ports as interface dependency. For instance, Remote has an output port Commands, that is connected to the input port of the RobotController. Commented Nov 7, 2019 at 12:14
  • still seems backwards. Is the RobotController querying the Remote with some getCommand()? Commented Nov 7, 2019 at 12:37
  • The RobotController listens for the data wrote by the Remote. In code, looks like command = m_commandsInPort.read() in RobotController and m_commandsOutPort.write(command) in Remote. I know it's confusing, that's why I aks this question. Commented Nov 7, 2019 at 12:45
  • Whats confusing is that if the write and the read are complimentary then at some time the data exists between them somewhere in something. You seem to have not shown that something. If you're saying m_commandsInPort is a reference to Remote thru the Commands interface and m_commandsOutPort is a reference to RobotController then this read and write aren't talking to each other. What is sent through one doesn't end up coming out the other. Instead they are two completely different ways to send information from Remote to RobotController that have nothing to do with each other. Commented Nov 7, 2019 at 15:02