Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Blocker: Tefkat does not find any model content
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jörn Guy  
View profile  
 More options Oct 30 2007, 11:50 pm
From: Jörn Guy <jgsu...@itee.uq.edu.au>
Date: Tue, 30 Oct 2007 20:50:05 -0700
Local: Tues, Oct 30 2007 11:50 pm
Subject: Blocker: Tefkat does not find any model content
The following transformation I have written as a debugging test case.
It should match all elements in a model and print their metaclasses as
a side-effect. For the model below it does not find anything, but the
model does definetely contain model elements in the root. It also
loads the resource, as I get an exception to that effect, if the file
is moved or removed.

TRANSFORMATION list : src -> src

RULE listObjects
  FORALL _ Src
  WHERE println(Src.eClass().getName())
  ;

INFO: Loaded (10885246) platform:/resource/
au.edu.uq.itee.mdavv.wrsa.foxbus.test2code/transformations/list.qvt
INFO: Loaded (7197832) platform:/resource/
au.edu.uq.itee.mdavv.wrsa.foxbus.test2code/instances/
Minimal.modelmanagement
INFO: Transformation started: list
INFO: Constructing stratification...
INFO: ... 1 levels.
INFO: Stratum 0 : listObjects
INFO: Evaluating listObjects
INFO: []
INFO: TRule: listObjects completed.
INFO: Transformation finished
INFO: ResourceSet event 8: null

<?xml version="1.0" encoding="UTF-8"?>
<au.edu.uq.itee.mdavv.wrsa.foxbus.modelManagement:Repository
xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:au.edu.uq.itee.mdavv.wrsa.foxbus.modelManagement="http:///au/edu/
uq/itee/mdavv/wrsa/foxbus/modelManagement.ecore">
  <designTime>
    <components name="Basic Calculations"/>
  </designTime>
</au.edu.uq.itee.mdavv.wrsa.foxbus.modelManagement:Repository>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
michael lawley  
View profile  
 More options Oct 31 2007, 12:00 am
From: "michael lawley" <mich...@lawley.id.au>
Date: Wed, 31 Oct 2007 14:00:23 +1000
Local: Wed, Oct 31 2007 12:00 am
Subject: Re: Blocker: Tefkat does not find any model content
Hi Jörn,

You've specified the same variable (src) for both input and output
extents.  Thus Tefkat is loading your input model and binding the var
"src" to that extent, then creating the output extent and re-binding
the same var "src" to this new, empty, extent (Resource).  Thus there
are no model elements found.  If you change the first line to

TRANSFORMATION list : src -> tgt

then it should work as you expect.

michael

On 10/31/07, Jörn Guy <jgsu...@itee.uq.edu.au> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jörn Guy  
View profile  
 More options Oct 31 2007, 12:10 am
From: Jörn Guy <jgsu...@itee.uq.edu.au>
Date: Tue, 30 Oct 2007 21:10:34 -0700
Local: Wed, Oct 31 2007 12:10 am
Subject: Re: Blocker: Tefkat does not find any model content
Nope. No change.

TRANSFORMATION list : src -> tgt

RULE listObjects
  FORALL _ Src
  WHERE println(Src.eClass().getName())
  ;

INFO: Loaded (1001124) platform:/resource/
au.edu.uq.itee.mdavv.wrsa.foxbus.test2code/transformations/list.qvt
INFO: Loaded (2826541) platform:/resource/
au.edu.uq.itee.mdavv.wrsa.foxbus.test2code/instances/
Minimal.modelmanagement
INFO: Transformation started: list
INFO: Constructing stratification...
INFO: ... 1 levels.
INFO: Stratum 0 : listObjects
INFO: Evaluating listObjects
INFO: []
INFO: TRule: listObjects completed.
INFO: Transformation finished
INFO: ResourceSet event 8: null

On Oct 31, 2:00 pm, "michael lawley" <mich...@lawley.id.au> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
michael lawley  
View profile  
 More options Oct 31 2007, 2:14 am
From: "michael lawley" <mich...@lawley.id.au>
Date: Wed, 31 Oct 2007 16:14:56 +1000
Local: Wed, Oct 31 2007 2:14 am
Subject: Re: Blocker: Tefkat does not find any model content
Hmm, very strange.  I have one project where this works and another
where it doesn't.  Will look further.

michael

On 10/31/07, Jörn Guy <jgsu...@itee.uq.edu.au> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
michael lawley  
View profile  
 More options Oct 31 2007, 11:43 pm
From: "michael lawley" <mich...@lawley.id.au>
Date: Thu, 1 Nov 2007 13:43:53 +1000
Local: Wed, Oct 31 2007 11:43 pm
Subject: Re: Blocker: Tefkat does not find any model content
Hi Jörn,

Further digging has revealed that the src and tgt extent variables are
not being bound to the correct resources.  You can check this with:

TRANSFORMATION testIt: src -> tgt

RULE navExtents
  WHERE println("src", src) AND println("tgt", tgt)
;

A work-around for this until the next release is to explicitly set the
Var Group for the source and target models to be the same name as the
corresponding input variable:

michael


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jörn Guy  
View profile  
 More options Nov 1 2007, 3:52 am
From: Jörn Guy <jgsu...@itee.uq.edu.au>
Date: Thu, 01 Nov 2007 00:52:13 -0700
Local: Thurs, Nov 1 2007 3:52 am
Subject: Re: Blocker: Tefkat does not find any model content
Could you include the setting you are making. I have only found one
other mention of the meaning of var group in the FAQ
http://tefkat.sourceforge.net/FAQ.html . I have run the testIt.qvt and
can confirm your analysis. My src binds to what I have defined as the
target.

On Nov 1, 1:43 pm, "michael lawley" <mich...@lawley.id.au> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
michael lawley  
View profile  
 More options Nov 1 2007, 8:12 pm
From: "michael lawley" <mich...@lawley.id.au>
Date: Fri, 2 Nov 2007 10:12:30 +1000
Local: Thurs, Nov 1 2007 8:12 pm
Subject: Re: Blocker: Tefkat does not find any model content
Var Groups are a very recent addition to Tefkat (i.e., they were added
for the current build).

After some further digging, the issue is related to the difference
between an unset String attribute, and a String attribute set to the
empty string (fixed in next release).  If you're up to hand-editing
the tefkatconfig file, you can remove the varGroup="" bits and all
will work well.

Otherwise, the way Var Groups work is that the value specified is used
to identify the extent variable of the transformation to which the
resource should be bound.  If there are multiple resources with the
same Var Group, then they are treated as a virtual compound resource
with the union of the individual contents.

michael

On 11/1/07, Jörn Guy <jgsu...@itee.uq.edu.au> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google