Directed Connector

Discussions about Domain Specific Language customizations

Moderator: Moderators

Directed Connector

Postby andreas.morgenstern@iese.fraunhofer.de » Thu Feb 02, 2017 3:08 am

Hi,

I'm currently developing a DSL for Function Networks.
Function Profile.jpg


There, functions have types, may be instantated and exchange data.
Functional ViewLightSystem.jpg
.
In the example, I created two types, a Light Controller and Light.
We have two instances of Light, the Front and Back Light.

Since I'm connecting instances of functions, I think I have to use a connector to
connect the ports. However, with the exception of adding an information item (in the figure to the connector to Front Light),
I found no way how to model the direction of the connector.
Is there a way to specify in the profile that a connector is a directed relationship ?
(or as an alternative to change the information flow to use the instances instead of the types)


Andreas
You do not have the required permissions to view the files attached to this post.
andreas.morgenstern@iese.fraunhofer.de
Forum Newbie
Forum Newbie
 
Posts: 9
Posts Rating:0
Joined: Fri May 20, 2016 2:44 am

Re: Directed Connector

Postby Rolandas » Wed Feb 08, 2017 4:43 am

Hello Andreas Morgenstern,

Connector is not directed and can't be made directed. Also Information flow also connects between types, not instances. Unfortunately there is no way to change it either.
Sorry for the inconvenience.

Regards,
No Magic Support Team
Rolandas
Customer Support
Customer Support
 
Posts: 234
Posts Rating:18
Joined: Mon Jul 30, 2012 3:59 am

Re: Directed Connector

Postby andreas.morgenstern@iese.fraunhofer.de » Wed Feb 08, 2017 5:18 am

Hi,

Thanks for your answer. Is there any other directed relationship that can be used for instances?

Andreas
andreas.morgenstern@iese.fraunhofer.de
Forum Newbie
Forum Newbie
 
Posts: 9
Posts Rating:0
Joined: Fri May 20, 2016 2:44 am

Re: Directed Connector

Postby borromeotlhs@gmail.com » Wed Sep 15, 2021 11:43 am

"Feature" seems to be a generalization of Connector that has directionality. . . Perhaps you could model a new stereotype that generalizes off of connector, then set the allowedrelationships property and source and target properties in its customization to create the type of connector you want?

Also, if you mean to have direction arrows from source to target on your connector, you would have to mess with the icon property in its specification window to set line width and connector end types. That is separate from the stereotype and customizations on the profile diagram stuff.
borromeotlhs@gmail.com
Forum Newbie
Forum Newbie
 
Posts: 11
Posts Rating:0
Joined: Mon Sep 16, 2019 2:54 pm

Re: Directed Connector

Postby borromeotlhs@gmail.com » Mon Oct 04, 2021 9:22 am

I believe you could generalize your data flow connector off of the standard 'directed connection' in the sysML profile, no? It wouldn't stop you from then using information flows in the opposite direction, though.
borromeotlhs@gmail.com
Forum Newbie
Forum Newbie
 
Posts: 11
Posts Rating:0
Joined: Mon Sep 16, 2019 2:54 pm


Return to DSL

Who is online

Users browsing this forum: No registered users and 0 guests