问题标签 [rhapsody]

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 回答
1188 浏览

c++ - 如何将 OMstring 类型转换为 char *

我正在使用 Rhapsody OMString,我的代码需要将 OMstring 类型转换为 char *

是否可以将 OMString 类型转换为 char *

0 投票
1 回答
507 浏览

c++ - IBM Rhapsody中状态图终结连接器的理解

在 IBM Rhapsody 中,如果我使用 new 创建了一个类的实例,那么我们是否必须通过调用 delete 来取消分配内存,或者 Termination Connector 将通过其状态图中的内存释放来处理其销毁?

0 投票
1 回答
205 浏览

c++ - GEN_ISR 在理性狂想曲中有什么用?

我是理性狂想曲世界的新手。想知道GEN_ISR在里面有什么用吗??在我用谷歌搜索的任何地方都没有得到适当的答案,所以在这里登陆。请帮助我理解它!

0 投票
2 回答
1161 浏览

eclipse - 从 Rhapsody 切换到 Eclipse (Papyrus) - UML 模型转换?

我们的团队使用 Rhapsody 开发 UML 模型和 c++ 代码已有 10 多年了,我们希望切换到 Eclipse 并使用 Papyrus 进行 UML 建模。

我们有兼容性问题:在 Rhapsody 中创建的 UML 模型(所有类图、状态机等)是否都可以轻松地移植到 Papyrus/Eclipse?Rhapsody 可以将 UML 模型导出为 XMI 文件(UML 2.1、2.2、2.3 标准)。我的问题是:Papyrus 是否能够从 XMI 文件中重建图表

如果没有,是否有更好的替代 UML 插件可以在 Eclipse 中工作?

Rhapsody 导出的 XMI 文件只包含模型的元数据。有没有一种快速的方法可以将整个项目从 Rhapsody 移植到 Eclipse 中?有没有人经历过类似的?

您的回答将不胜感激。

0 投票
1 回答
471 浏览

build - 理性狂想曲 - 构建错误

我正在使用 IBM Rational Rhapsody for Java 8.1.1

每当我尝试编译/构建/运行任何项目时,都会出现这样的错误:

我尝试过运行示例项目并创建一个新的简单项目,但没有成功。

我在 jdkmake.bat 中更改了 JavaLocation,我认为它与 javalocation 无关。有任何想法吗?

@edit重新安装了jdk,jre和rational,现在它的工作......很奇怪。

0 投票
1 回答
660 浏览

c++ - 使用 IBM Rational Rhapsody 的显式成员专业化

我想使用 IBM Rational Rhapsody 在一个类中显式地专门化一些成员函数。

到目前为止我做了什么;我在常规类中创建了一个函数,将其标记为template。标记为CG::Generate to Specification。这将是模板的原型。

然后我创建了另一个函数。将其标记为模板。将我在上面创建的函数指向模板参数下的主模板。填充实施。这是 Rhapsody 生成的代码:

当我编译这个时,我得到这个:error: explicit specialization in non-namespace scope 'class MyConvert'

显式特化应该在类定义之外实现,如下所示:

如何使用 Rhapsody 实现这一目标?

0 投票
1 回答
183 浏览

java - 吸引属性为狂想曲键入 java 插件

我需要编写一个 java 插件,将使用 rhapsody 绘制属性。你对此有什么建议。我应该从哪里开始?以前我没有写插件。

0 投票
1 回答
409 浏览

rhapsody - 从状态图中生成 switch-case 函数

虽然我的问题很简单,但我找不到答案。

我在 Rhapsody 中创建了一个类并将状态图与该类相关联,但是当我生成代码时,我无法在与状态图相关的类中找到代码。

是否有任何功能需要创建为触发器,或者我错过了什么?

我的示例状态图: 在此处输入图像描述

0 投票
2 回答
699 浏览

eclipse - Running IBM Rhapsody animations without Visual Studio

I am relatively new to Rational Rhapsody, and SysML in general, so the errors are likely to be at my end.

I have been scouring Google (and SOF) looking for ways to run Rhapsody animations without Visual Studio. It was my impression that if Rhapsody had access to another IDE, say Eclipse, then the other IDE could deal with the animations. Is this correct, or is VS absolutely required to run animations and debugging tools in Rhapsody?

I have been getting a similar error to that of the user in How to fix Rational Rhapsody error :"Current value is "VC11", but no Visual Studio installation was not found in the directory ""."; my error is "VC10." However, I do not have, or plan to have, Visual Studio run the animations; I'd rather have the animations run using Eclipse, but this is not working either (the same "VC10" error occurs).

I also chatted with a contact at IBM and he suggested trying cygwin as a compiler, but under my circumstances, I cannot download that software.

Thanks in advance for the assistance.

0 投票
1 回答
143 浏览

c - 将标签添加到类型声明

我需要在 Type 声明中添加一个标记值,如下所示:

在此处输入图像描述

问题是我在生成的代码中不断获取标签名称而不是标签值。如下。

在此处输入图像描述

任何线索?

我最初的需要是制作一些#define 线条,我试图为此制作一个刻板印象