eclipse-qvtd / org.eclipse.qvtd

Eclipse Public License 2.0
0 stars 0 forks source link

Add additional QVTc examples #145

Open eclipse-qvtd-bot opened 1 week ago

eclipse-qvtd-bot commented 1 week ago

| --- | --- | | Bugzilla Link | 485152 | | Status | NEW | | Importance | P3 enhancement | | Reported | Jan 04, 2016 10:26 EDT | | Modified | Jan 05, 2016 13:55 EDT | | Reporter | Horacio Hoyos |

Description

Add more examples that can also be used for test cases. This requires modifying the MTC broker and test cases to make it easier to use QVTc sources in other projects.

eclipse-qvtd-bot commented 1 week ago

By Ed Willink on Jan 04, 2016 11:05

Bug 461992 addresses the issue of QVTc/QVTr launches.

We need to design a launch dialog that supports at least distinct Compile/Execute buttons with usefully identified intermediates. This will collaborate with a revamped Epsilon-free MtcBroker for use by those who want a Java API.

This bug: more QVTc examples can restrict itself to content.

High on my priority list is the QVTc variant of QVTo's canned UML2RDBMS example that everyone learns from ... and then the QVTr variant.

However the scheduler does not yet work for UML2RDBMS; more partitioning is needed. Perhaps QVTm2QVTp changes to be one micro-mapping per commit (RealizedVariable / PropertyAssignment) rather than uniformly LM+MR. This dodges the problem of intermediate variables for an MR access to an LM primitive. Such problematic mappings become LMR with a mix of L/M/R inputs and a single R commit.

eclipse-qvtd-bot commented 1 week ago

By Horacio Hoyos on Jan 04, 2016 11:57

(In reply to Ed Willink from comment #1)

This bug: more QVTc examples can restrict itself to content.

Yes, for one more examples can just go into the examples projects and be availabhle for future users.

I hope some of the additional examples I am adding can help further test the MTC. The FamiliyToPerson is even simpler that UpperToLower and can perhaps be used to produce some very basic performance measures. The Hstm to Stm is interesting as it has some complicated OCL statemts that can challenge the scheduling and it seems to be a very clear example that requires loop support at runtime.

eclipse-qvtd-bot commented 1 week ago

By Horacio Hoyos on Jan 04, 2016 12:43

FamilyToPersons and HStmToStm added on hhoyos/485160.

Both new tests fails. Needs inspection,

eclipse-qvtd-bot commented 1 week ago

By Horacio Hoyos on Jan 05, 2016 12:57

While at it, I will also fix the typo in the HSV2HSL example (currently it reads HSV3HLS), which is a minor cosmetic bug but it "bugs" me.

eclipse-qvtd-bot commented 1 week ago

By Horacio Hoyos on Jan 05, 2016 13:55

Hi,

I fixed the type in the HSV2HSL example but the tests don´t pass any more. I think it has something to do with the execution of the queries both in interpreted and CG. Is there something missing to make queries work?