Home » Modeling » VIATRA » Incquery - how to query the association relationship in UML(Incquery - how to query the association relationship in UML)
Incquery - how to query the association relationship in UML [message #1758328] |
Mon, 27 March 2017 17:06 |
sarah Adam Messages: 5 Registered: March 2017 |
Junior Member |
|
|
hi,
I am trying to use Incquery to query the content of UML file. However , I am not sure how to write the pattern for UML association relationship. Can you please advice on this.
@Edge(source = sub, target = sup, label = "impl")
@Format(color = "#0000FF", lineWidth = 1, lineStyle = "dashed")
pattern associationImpl(sub : Class, sup : Class) {
Property.Owner(IR,sub);
Property(IR);
Property.type(IR,sup);
}
Regards
Laila
|
|
| | |
Re: Incquery - how to query the association relationship in UML [message #1758563 is a reply to message #1758392] |
Thu, 30 March 2017 07:19 |
sarah Adam Messages: 5 Registered: March 2017 |
Junior Member |
|
|
Hi Zoltan,
Thanks for your reply..
I tried the following but it not seem to work, am I doing something wrong.
Also "propert.owner" is not seem to be supported by incquery.
@Edge(source = src, target = targ, label = "associate")
pattern association(src:Class , targ:Class){
Association(Ass_0);
find associationEndType(Ass_0,pro);
TypedElement.type(pro, targ);
Property.owner(pro,src);
}
pattern associationEndType(
self : Association,
pro : Property
) {
Association.memberEnd(self, pro);
}
salwa
[Updated on: Thu, 30 March 2017 07:40] Report message to a moderator
|
|
| |
Goto Forum:
Current Time: Thu Jun 13 06:00:08 GMT 2024
Powered by FUDForum. Page generated in 0.03861 seconds
|