Stefan Rohde - 2002-10-23

Hi there !

I'm a student (University of Wuerzburg, Germany) working on a project for displaying UML-sequence diagrams. There's also a demand for saving/loading those diagrams (only the corresponding UML-model, not the diagram itself in terms of coordinates or similar) to some XMI format. 

It seems nsuml, respectively the more actual nsmdf library is just what I'm looking for. The past week I've been trying to use the library and at least I could get as far (as displayed in some simple samples that you provide) how to read/write a XMI file, just using an OutermostPackage or a MModel.

The reason I'm posting is: I'm just not getting any further and therefore I'm really in need of some help to give it a better start.

My current understanding of the lib is that I just need to create the Metamodelclasses corresponding to the model I'm using myself within the project (e.g. create an MObject instane for any given Object, MMessage for any Message and so on). Then to add those to the MModel and finally just go for saving. Loading would be done the other way round, but I'm not sure how to get any more specific MClasses than just the MModel (or outermostPackage).

I would really appreciate any help here. My Model is pretty simple, consisting of Objects for the Sequencediagram, Messages between those, Iterations for Messages, Branches (Messages forking or joining other Messages), Notes/Comment and finally attributes to them objects which are of minor interest just now.

I've also been looking into some projects that use nsuml (argouml), but despite I've found some spots that look interesting in terms of using nsuml, I've not made any real progress on my issue.

Thanks for reading, maybe for helping me out 8),

Stefan