Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-user] Match depending on the number of edges

Thank you for your immediate answer.


I see, I did not declare my matter clearly. Sorry for that.

Sure I can match that by explicitly define a rule where Class1 is connected to exactly 2 Class2.

What I had in my was more in the direction by making it some kind of generic with for example attribute conditions and input parameters.

Sorry for the inconvenience. I hope now it's clearer what I meant.


Best,
Jürgen

-- 
Dipl.-Ing. Jürgen Freund
Arbeitsgruppe Ähnlichkeitsmechanik

Telefon: +49 (0)711 685 69530

Postadresse:
Universität Stuttgart
Institut für Statik und Dynamik der Luft- und Raumfahrtkonstruktionen
Pfaffenwaldring 27 - Zimmer 01.002
70569 Stuttgart

On Thu, 2017-10-26 at 12:34 +0000, Zschaler, Steffen wrote:

That’s exactly what Graph Rules are for. You can just write down exactly the situation that you are after.

 

Steffen

 

Dr. rer. nat. Steffen Zschaler AHEA

Senior Lecturer

 

King's College London

Department of Informatics

 

Email szschaler@xxxxxxx

Phone +44 (020) 7848 1513

WWW   http://www.steffen-zschaler.de/

 

From: henshin-user-bounces@xxxxxxxxxxx [mailto:henshin-user-bounces@xxxxxxxxxxx] On Behalf Of Juergen Freund
Sent: 26 October 2017 13:19
To: Henshin Project user discussions <henshin-user@xxxxxxxxxxx>
Subject: [henshin-user] Match depending on the number of edges

 

Hello Henshin users and developers,

 

 

I just wanted to ask if it possible to construct matching rules which match certain patterns dependent on their number of connected edges?

 

As example:

 

My class diagram:

 

Class1 -- [*] Class2

 

My input model:

 

Class1 connected to 3 Class2.

Class1 -- [3] Class2

 

Class1 connected to 2 Class2.

Class1 -- [2] Class2

 

 

Now I want my rules only to match the pattern where Class1 only has 2 Class2 members.

 

 

Best,

Jürgen

 

 

-- 

Dipl.-Ing. Jürgen Freund

Arbeitsgruppe Ähnlichkeitsmechanik

 

Telefon: +49 (0)711 685 69530

 

Postadresse:

Universität Stuttgart

Institut für Statik und Dynamik der Luft- und Raumfahrtkonstruktionen

Pfaffenwaldring 27 - Zimmer 01.002

70569 Stuttgart

_______________________________________________
henshin-user mailing list
henshin-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/henshin-user

Back to the top