traceability [message #1723115] |
Thu, 11 February 2016 18:16 |
taghreed altamimi Messages: 184 Registered: October 2014 |
Senior Member |
|
|
Hi,
In OO2DB example its written in the post
post {
// Store traceability links in custom model
var trace : new Trace!Trace;
for (t in transTrace.transformations) {
var link : new Trace!TraceLink;
link.sources.add(t.source);
link.targets = t.targets;
link.description = "Transformed by " + t.getRule().name;
trace.links.add(link);
}
where is transTrace defined and located??
what information can i get from transTrace??
Thanks.
[Updated on: Thu, 11 February 2016 19:36] Report message to a moderator
|
|
|
|
|
|
|
Re: traceability [message #1724112 is a reply to message #1724027] |
Sun, 21 February 2016 03:18 |
taghreed altamimi Messages: 184 Registered: October 2014 |
Senior Member |
|
|
Hello
The Epsilon version that I am currently using is:
Epsilon Core 1.2.0.201408251031 org.eclipse.epsilon.core.feature.feature.group Eclipse.org
my problem happens usually when I want to create a Trace model which is an instance of Lqn2umlTrace.ecore which has two attributes of type string
sources ,targets, so the post part in the TraceabilityFeb3.etl has the problem because i am trying to use the following 3 methods :
t. getSource().name
toString() to override java.lang.Object which results from t. getSource().name
t.getSourceType()
I attached Lqn2umlTrace.emf ---the metamodel for Trace.model
TraceabilityFeb3.etl
CompletedModelNov24Ph1Ph2ActivityGraph.um source model
Targetlqn.model target model
lqnmodel the target metamodel
so please do the following to reproduce the proplem
Run the launch file as it is and note the errors when using the above methods.
By the way I was abled to get Trace.model (as a temporary solution ) when I concatenated t.getSource().name to string like (link.sources= "source is"+t.getSource().name;) and i did the same thing for
t.getTargets().first() but I still got an error when using t.getSourceType()
Thanks very much for your help.
Taghreed.
[Updated on: Sun, 21 February 2016 03:22] Report message to a moderator
|
|
|
Re: traceability [message #1724120 is a reply to message #1724112] |
Sun, 21 February 2016 10:35 |
|
Hi Taghreed,
In line 14 you're calling toString(t.getSource().name). There's no context-less built-in toString(...) operation in EOL and you don't appear to have declared such an operation yourself either, hence the error.
Cheers,
Dimitris
|
|
|
|
|
Re: traceability [message #1724214 is a reply to message #1724170] |
Mon, 22 February 2016 10:31 |
|
Hi Taghreed,
What you're getting back is an instance of "entry", so you should be able to call getTargets().first().name for example.
Cheers,
Dimitris
|
|
|
|
Re: traceability [message #1724266 is a reply to message #1724262] |
Mon, 22 February 2016 16:19 |
|
Hi Taghreed,
> I have tried this before but it didn't work I got error says that Property 'name' not found in object precedence [].
Could you please provide a minimal example I can use to reproduce this?
Cheers,
Dimitris
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03607 seconds