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

Beitragvon thomasgiovannelli » Oktober 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: Alles auswählen
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
 
Beiträge: 2
Registriert: Oktober 6th, 2011, 4:28 pm

Re: Automated Statechart diagram generation

Beitragvon thomasgiovannelli » Oktober 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: Alles auswählen
IRPConnector connect = rootState.addConnector("Diagram");
connect.setName("Name_for_diagram_connector");
thomasgiovannelli
 
Beiträge: 2
Registriert: Oktober 6th, 2011, 4:28 pm


Zurück zu Rhapsody API

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste

cron