I am trying to develop a generic translator that will transform a simulink model to a sysml model. The stateflow chart will be translated to a state machine diagram in sysml. The translator program is being developed in java
and it uses the topcased sysml plugin to generate the sysml model. I was able to find some of the APIs (like creation of block, trigger etc.), but each time I have to navigate the sysml and uml apis to figure out the correct APIs and some of them are not obvious. It would be very helpful if there is some sample code to illustrate this. Especially it would be helpful to have some example for translating guard expressions into sysml constraint expressions. Thanks sudha >Hi sudha. Can your question be more accurate ? >There is some way to generate java code you can do it in java, M2T >(acceleo, xpand) ... you also can M2M transformation and M2T, so what is >your need ? Tristan Le 13/03/2010 19:39, topcased-users at gforge.enseeiht.fr <http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users> a écrit : > > I am trying to write a java program to generate a sysml model > containing a state machine diagram using the topcased sysml plugin. > Could someone provide some example code for how this is done. > > thanks > sudha thanks sudha UTRC 860.610.7445 From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Wednesday, March 10, 2010 5:10 AM To: [email protected] Cc: [email protected] Subject: Re: [Topcased-users] Library/API for auto-generation of SYSML model Hi if you want you can use DiagramFileInitializer class in org.topcased.modeler.tools which creates a new diagram from an existing model. It is the code called at model creation wizard Regards Tristan FAURE [email protected] a écrit : I am trying to transform a stateflow model to SysML. I am using a stateflow parser in java to extract the model components. Is there any java library/API available that I can call to create the SYSML diagrams? I am using TOPCASED with Eclipse version 3.5.1. thanks sudha ________________________________ _______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users thanks sudha UTRC 860.610.7445
_______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
