Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[henshin-user] Connect all possible A and B only once

Dear Henshin Users and Developers,

I have problem with rules which I am not able to solve.

I want to create 50 instances of a class A and 50 instances of a class B.

After that is done I want to connect all of them in a separate rule. And I only want them to connect only once.
Which means in the end there should be 50 edges more in the graph.

So what I have done:

  • Rule to create class A and class B
  • Iterated Unit which calls the rule above 50 times.

Now is the part I don't know haw to do it right.

  • Rule which creates an edge between a preserved A and a preserved B --> only one single connection is added
  • Amalgamation Rule which creates an edge between a preserved* A and a preserved* B --> each a has 50 connections to each B

I added the project with my examples. It would be nice if you could me out.

Kind regards,


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

Telefon: +49 (0)711 685 69530
E-Mail:  freund@xxxxxxxxxxxxxxxxxxxx

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

Description: Zip archive

Back to the top