问题标签 [qvt]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
40 浏览

qvtkwidget - QVTD(声明式)插件 Eclipse 是否已经在稳定版本中?

我想实现从DMN到BPMN的转变。我认为已经使用 QVTD(声明性)插件 eclipse,但它的版本稳定吗?

0 投票
1 回答
106 浏览

eclipse - 模型上的 QVT 复制操作

我需要使用 QVT 更改模型实例(保留原始模型)。我想使用 QVT 文档中定义的 copy() 操作(作为模型上的 Orerations 之一),但我不明白如何使用它,我尝试执行下一个代码并查看 Out 实例从 In 实例复制,但没有任何运气:

0 投票
1 回答
141 浏览

java - 如何使用已部署的 QVTo Eclipse 插件

我目前正在研究从 EMF 模型转换为 UML 模型的 QVTo 转换。如果我从 Eclipse Run Configurations 作为 Operational QVT Interpreter 运行转换,QVTo 转换工作正常。

但是现在,我需要从 Java 项目中以编程方式运行它,该项目将在必须运行时进行处理。

我已经看到 QVTo 项目可以作为 Eclipse 插件项目启动,它们可以作为 Eclipse 插件部署,但我的问题是,如何在 Java 中运行导出为 Eclipse 插件的 QVTo 转换?如果不可能作为 Java 解决方案,我该如何运行这些转换?

0 投票
1 回答
99 浏览

eclipse - 如何在 QVTo 转换中应用 UML 标准配置文件中的构造型?

在 QVTo 转换中,我想将<<Create>>UML 标准配置文件中的构造型应用于新创建的操作。在UML 规范的第 678 页上,它说它适用于 BehavioralFeatures 并因此适用于操作。我在助手中尝试了以下内容,但无济于事:

转换适用于 aninout sourceModel : UML并且我检查了配置文件是否已sourceModel提前应用于:

我做错了什么以及如何正确完成?

0 投票
3 回答
200 浏览

eclipse - 如何从 QVTo 中的生命线获取 OrderedSet 的 OccurrenceSpecifications?

从UML 规范第 570 页的图表中,我得出结论, aLifeline应该具有events属性,持有一个OrderedSet(OcurrenceSpecification). 不幸的是,它不存在,至少在我使用的 QVTo 实现中。

我所拥有的只是coveredBy财产,为我提供 (unordered) Set(InteractionFragment)。由于我的转换依赖于正确的顺序,因此MessageOcurrenceSpecification我需要以某种方式实现我自己期望通过缺失的events属性实现的东西。

这是我到目前为止所拥有的:

显然sortedBy(true)不会让我走远,但我不知道更多。谁能帮忙?

到目前为止,我所能找到的只是几年前其他人在同样的问题上苦苦挣扎,但没有解决方案:

0 投票
1 回答
104 浏览

java - Model transformation to platform specific (NC) code

Tools experience wear during usage. Machines using these tools need to have their NC (i.e. numerical control) programs corrected, after the wear is measured.

I've already created a XSD model and generated JAXB classes that manage these measures, now I want to automatically generate NC code that sets the measured differences on the machines.

The code to be generated basically has this format (plus possibly some static prefixing/suffixing code):

with tbeing the ID of the tool, D being a cutting edge on this tool, and xbeing a parameter related to the cutting edge.

For different tools t, x and D have different meaning, e.g. $TC_DP1[10, 2] is length of edge 2 on tool 10. $TC_DP1[5, 2] could be width of edge 2 on tool 5.


I'm looking for a way to declaratively define the mapping between the $TC_DP<x>[<t>, <D>] format and the model I've created, in order to have the NC code generated for me.