【发布时间】:2018-09-26 08:29:16
【问题描述】:
为了简化我的问题,我制作了我的problem 的一个小模型。
在这个模型中,我在 Simulation 中有一个 Plane。我想用一小段代码生成其他一些具有相同子类的 Plane(MotorType、OtherClass1、OtherClass2 ) 和相同的值,除了 MotorType 中的数值随每次迭代递增。
对于 example,我有一个由名为“plane1”的 Plane 组成的模拟,MotorType=TypeB 的值为 10,还有一个 其他类1.
我想生成 10 个新飞机,OtherClass1 具有相同的值和相同的 MotorType,但“值”增加了 10。
如何在我的模拟中生成一些新的平面子代,它是现有平面的副本,但具有参数增量?
是否可以通过右键单击我的飞机复制来使用 Sirius 执行此操作?
Example of my model class diagram
Example of a creation of a simulation
【问题讨论】:
-
优秀的第一个问题哥们。干得好!
-
非常感谢! @Rann-Lifshitz
标签: eclipse emf ecore eclipse-sirius