Zurück zu Willert.de

Automated Statechart diagram generation

how to access or perform things by using the Rhapsody API (not how to use the UI)

Automated Statechart diagram generation

Postby thomasgiovannelli » October 6th, 2011, 5:45 pm

Hi, I have created an algorithm to generate a tree of states and it's working perfecly.
But now, i have an issue when i want to insert a transition between a leaf of the tree and the main node.
The problem is due to the fact that the main node is in a statechart diagram and the leaf of the tree is in a other one
(in fact, each level of the tree is in its own statechart diagram).

So, i want to create diagram connector and use the connector to link states to the main node.

But i can't find a method like:
Code: Select all
IRPConnector connect = rootState.addConnector("DiagramConnector");

so, my question is:
How can I create a diagramConnector in a StateChart diagram with the JavaAPI?

I'm using Rhapsody 7.4
Please Help.
Thomas.
thomasgiovannelli
 
Posts: 2
Joined: October 6th, 2011, 4:28 pm

Re: Automated Statechart diagram generation

Postby thomasgiovannelli » October 14th, 2011, 10:22 am

Ok, Thanks to IBM for its phone call.
It was very usefull.
So the problem is due to a lack of information in the documentation of the API.
In fact you have just to do it:
Code: Select all
IRPConnector connect = rootState.addConnector("Diagram");
connect.setName("Name_for_diagram_connector");
thomasgiovannelli
 
Posts: 2
Joined: October 6th, 2011, 4:28 pm


Return to Rhapsody API

Who is online

Users browsing this forum: No registered users and 1 guest

cron