I am using MoDisco to discover UML interaction models from Java code.
I am analysing a KDM ActionElement representing a method invocation. How can I know which code element is the target object (the object that will receive the method call) ?
In this post (http://www.eclipse.org/forums/index.php/t/356704/), it is said that "KDM Action Elements of kind "method invocation" have Calls accessible via their reference actionRelation.Each Calls element has "to" and "from" references, respectively giving the called MethodUnit and the element (variable, other method invocation, etc) on which it is called"
However, in the KDM model, the reference "from" is the ActionElement from which the call relation originates. I do not find the way to obtain the object that receive the method call. For example:
the following sentence in java code:
is translated in the KDM model:
" - [ActionElement] expression statement
- [ActionElement] method invocation
-to: [MethodUnit] method
-from: [ActionElement] method invocation "
i had a look at the discovered model and at the OMG KDM specification, and i have understood that there is one missing "[Adresses]" instance. The "[ActionElement] method invocation" should contain this missing "[Adresses]" instance which should reference the '[StorableUnit] a' .