|
Re: [emf] multiple source target links [message #1338957 is a reply to message #1336785] |
Wed, 07 May 2014 12:59 |
|
Hi,
One option would be to use inheritance e.g.
class Information_Requirement extends Requirements{
ref Information_Requirement_End from;
ref Information_Requirement_End to;
}
abstract class Information_Requirement_End {}
class Decision extends Information_Requirement_End {}
class Input_Data extends Information_Requirement_End {}
Cheers,
Dimitris
|
|
|
|
|
|
Re: [emf] multiple source target links [message #1341378 is a reply to message #1336785] |
Thu, 08 May 2014 13:03 |
Justus 2000 Messages: 15 Registered: May 2014 |
Junior Member |
|
|
I tried it now and it works, but there is a new problem with the Authority Requirement connection. I grouprd Decision, Business_knowledge_model and Knowledge_source to DBK.
now I need 2 links [from Knowledge_source to DBK] and [from DBK to Knowledge_source].
DBK to DBK is not a possibility.
can I inheritance a link?
@gmf.link(source="fromTop", target="toTop")
class Authority_Requirement_top extends Requirements{
ref Knowledge_source fromTop;
ref DBK toTop;
}
@gmf.link(source="from", target="to")
class Authority_Requirement extends Authority_Requirement_top{
ref DBK from;
ref Knowledge_source to;
}
I tried this but it didn't work.
[Updated on: Thu, 08 May 2014 14:08] Report message to a moderator
|
|
|
Re: [emf] multiple source target links [message #1348089 is a reply to message #1341378] |
Sun, 11 May 2014 20:17 |
|
Hi,
I'd suggest introducing a superclass of Knowledge_source and DBK (e.g. X) and then using constraints (e.g. with EVL) to define the exact types allowed in each reference.
@gmf.link(source="from", target="to")
class Authority_Requirement_top extends Requirements{
ref X from;
ref X to;
}
class Authority_Requirement extends Authority_Requirement_top {
}
Cheers,
Dimitris
|
|
|
Powered by
FUDForum. Page generated in 0.02997 seconds