Irr
Irr

Reputation: 706

Are ports required in SysML 1.4 for modelling flow between blocks?

Considering the following block diagram:

enter image description here

I would like to model a continuous flow from PressureSensor.pressure to LPF.input.

Is it compliant to the SysML 1.4 specification to model this flow without using ports like in the following diagram?

enter image description here

Or do I have to use ports like in the following diagram? enter image description here enter image description here

Upvotes: 4

Views: 1096

Answers (2)

Jim L.
Jim L.

Reputation: 6529

There is a difference between a non-abstract block and a port typed with an interface. A non-abstract block cannot be substituted. In contrast, something with a matching interface is easily substituted.

Think about two analogies:

  • One brand of HDTV will only work with one brand of cable TV box. If you want to use another brand of HDTV, you would have to emulate the original brand of HDTV completely because of some undocumented inter-dependency.
  • Any brand of HDTV that has an HDMI interface will work with any brand of cable TV box that has an HDMI interface.

Which situation would you rather have in your living room?

Upvotes: 2

qwerty_so
qwerty_so

Reputation: 36323

From the SysML spec (1.3):

The main motivation for specifying ports and flows is to enable design of modular, reusable blocks with clearly defined ways of connecting and interacting with their context of use.

In other words: you can of course use direct connectors, but you will loose the ability to specify more details about what is going on along those connectors.

Upvotes: 4

Related Questions