Skip to main content
edited title
Link
Greg Burghardt
  • 46.1k
  • 8
  • 87
  • 150

How to modelisemodel data flow between components in UML

Source Link
Hugal31
  • 151
  • 1
  • 7

How to modelise data flow between components in UML

I am trying to model a robot controller I am working on. If I would think in Object-oriented design, I would come up with a component diagram like this :

Component diagram of the remote, using the RobotController, using the WheelsInterface

However, we use a data-oriented framework (ROS/Orocos), so components are linked together with "ports". In our system, for instance, the WheelsInterface has a output port actualVelocity and an input port commandVelocity ``

I am not sure how to represent this in UML. I have tried to represent output ports by interface realization and input port by interface dependency, but it seems wrong.

Component diagram with the interfaces circles representing the data ports

Is there a better way to represent the data flow between components in UML ? Or should I stick to the first diagram, bud add some kind of qualifiers to the lines?