reference to more than one concept

 Hello,

Is it possible to make a reference to several concepts?

For instance I have a concept composition with two references:

from : arrow[1]

to : arrow[1]

but I actually want something like this:

from : arrow[1] or from : id[1]

to : arrow[1] or to : id[1]

I also would need such alternative option in the editor, so that it is possible to

choose both, arrow and id in the DSL for composition.

Kindly regards,

Volker

0
3 comments

Situations when two concepts can be used as alternatives is best solved with abstract super-concepts.

abstract concept A

concept B extends A

  references:

    target: arrow[1]

concept C extends A

  references:

    identifier: id[1]

 

concept MyConcept

  children:

    from: A[1]

    fo: A[1]

 

2

And if you want to have multiple references, make a new concept called, e.g. ARef which has only 1 reference and then simply use ARef[0..n] children.

1
Avatar
Permanently deleted user

Thank you for the answers. The solution works perfectly

0

Please sign in to leave a comment.