How to realise a 'sequence diagram' without using uml sequence diagram metamodel - metamodel

I'm working on a description of a scenario by using sequence diagram. and i would like to define the metamodel without having all the uml element for the SD. Kind of creation of my own SD. the problem is i don't know the steps to follow. does anybody know how i should start?

Have you checked the documentation found at: https://www.eclipse.org/sirius/doc/specifier/sequences/Sequence%20Diagrams.html

Related

How to generate a class diagram or UML from a json file

I exported a json file from my firebase but I can't seem to find a tool that can generate a class diagram or UML from a json file. Can anyone help me? It'll be a great help.
I don't think this is possible.
An instance of a JSON document describes what values are attached to what key's. UML class diagram is meant to show structure. A UML diagram could use a class to represent a JSON object. Using the JSON keys as attributes (with nested information as a class that it has an instance of). However Going this way would still make it impossible to define the type of the information the attribute holds. For example you might have a key X that holds the number 5. Without knowing this is a number no tool can auto generate a UML diagram for you. As the tool would need to know the type of the data in advance.

Can't get MVVMCross core project to reference System.Xml.Linq

I'm quite new to MVVMCross but I've been actively using it for two weeks, at work and in a school project, and I am really enjoying it! Unfortunately, I've been stuck on the school project for 2 days now : we're asked to do a mobile Jabber client. This is not a big deal since I started it using Matrix XMPP library, which does most of the job and is easy to use. I decided to restart my project using MVVMCross, in order to have cleaner separated code and add a Windows Phone project, but Matrix absolutely needs System.Xml.Linq, and I can't get the core PCL to compile :
The type 'System.Xml.Linq.XElement' is defined in an assembly that is not referenced.
You must add a reference to assembly 'System.Xml.Linq, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
As shown in Stuart Lodge's tutorial videos, I'm using profile 104, the the faulting dll is really present in the folder, I can't add it manually to project's references since VS prevents me from doing it (gently explaining that it's automatically loaded since .Net portable subset is included in references), I've updated and repaired my VS install "just in case"... and have no more idea left.
So, here are the questions :
is it really possible to use System.Xml.Linq with MVVMCross? or did I miss the big title explaining that what I'm trying to do is stupid?
if yes (that'd be great!) did/does someone experience the same problem? Even more interesting : did someone find a solution?
Thanks in advance!
Additional info : Windows8(x64), VS2012 Ultimate, trial license (school project...) for Xamarin.Android
UPDATE : following Stuart's answer, I compiled and ran the BestSellers sample, which uses System.Xml.Linq... without any problem. As it comes with an explicit reference to System.Xml.Linq (see first link in answer), I tried :
to delete it (and a few others) : VS holds it's promises, and really includes needed references as long as .Net Portable Subset is referenced, so everything rolls smooth.
to manually add this reference via Notepad to my .csproj : it doesn't change anything.
One thing tickles me in Stuart's answer : "perhaps it is something to do with the way the matrix uses XML.linq". Since the Matrix type I'm trying to use is just a descendant of System.Xml.Linq.XElement, which is widely used in BookViewModel.cs from sample, what could possibly be wrong with that?
"Solution" : The problem seems to be due to Matrix requiring a special version of System.Xml.Linq, which is not the one included when profile 104 for building PCL. I used file linking method as a workaround to share the core, and that works, though this is less elegant, readable, and harder to maintain...
Yes it is possible to use at least some of System.Xml.Linq
For example, see the BestSellers sample
csproj file - https://github.com/slodge/MvvmCross-Tutorials/blob/master/Sample%20-%20BestSellers/BestSellers/BestSellers/BestSellers.csproj#L49
example XML linq use - https://github.com/slodge/MvvmCross-Tutorials/blob/master/Sample%20-%20BestSellers/BestSellers/BestSellers/ViewModels/BookViewModel.cs#L44
For the problem you are seeing, I'm really not sure what the error is - perhaps it is something to do with the way the matrix uses XML.linq? You might have more luck of you open up this question to other tags like portable-class-library, XML-linq and windows-phone.

Modelling the idea of throwing an exception in a UML Activity Diagram

The ability to model the idea of catching an exception is pretty easy in a UML activity diagram - but what about THROWING the exception? The closest thing I can seem to find would be the throwing activity sending a signal with a stereotype of <<exception>> and then hitting a flow-final node, but I don't know that this is considered best-practice. Any thoughts?
Thanks.
UML 2.4 superstructure specification, in chapter 12.3.44 Pin (from BasicActivities, CompleteActivities), on figure 12.122 (page 416), you can see output pin for throwing exceptions. There is also an example on figure 12.129 (page 419).
UML notation exists to show exceptions.
Look at Larman's book:
Applying UML and Patterns: An
Introduction to Object-Oriented
Analysis and Design and Iterative
Development, Third Edition By Craig
Larman 35.3. Handling Failure Chapter
Larman says that :
*In summary, UML notation exists to
show exceptions. However, it is rarely
used. *This is not a recommendation to
avoid early consideration of exception
handling.* Quite the opposite: At an
architectural level, the basic
patterns, policies, and collaborations
for exception handling need to be
established early, because it is
awkward to insert exception handling
as an afterthought. However, the
low-level design of handling
particular exceptions is felt by many
developers to be most appropriately
decided during programming or via less
detailed design descriptions, rather
than via detailed UML diagrams.*
Usually the throwing an exception is displayed in the sequence diagram. I would say the following example is mainly used with Java but don't really know if it could also corespond to higher level of abstraction !!

Is there a simple Linq to SQL generator with bi-directional serialization attributes?

I'm trying to find a way to generate Linq to SQL classes with bi-directional serialization attributes. Basically I want a DataMember tag (with an appropriate order) on every association property, not just the ones where the class is the primary key (like the Visual Studio generator and SQL Metal do). I checked MyGeneration, but didn't really find anything that worked for me. I thought the T4 Toolbox was going to be my solution, it would be quite easy to modify it to add the attributes, but I get an exception on the calling side of my WCF service, and I've gotten no response back on the issue. I'm about to try installing CodeSmith and using PLINQO, but I'd prefer something free.
I'm pretty close to just writing my own T4 generator, but before I do that, I was hoping to find an pre-built solution to this rather simple problem first.
I ended up writing my own code generator for our L2S classes. We actually generate two sets of classes. One is a "lightweight" set of entities for client application use. These classes have no L2S plumbing. But they have the full datamember attributes with proper order. Then we have our L2S entities, which are strictly for backend use. This has worked out quite well.
Be careful using PLINQO. I've looked at that product extensively. In fact, much of my code generator is based on the code PLINQO generates. However, they have a "major flaw" (their words) in how they have implemented many to many relationships.
You might want to also look at a product named "Reegenerator".
Randy
This turned out to be the solution to my problem. I had just resigned myself to start researching my own generator when I stumbled upon that. It has a bidirectional serialization option and it works great! Here's a link to the author's bog, which contains a great video example of how to get started.

implements in UML

Any idea how I express 'implements' in UML?
I'm trying to write some actionscript classes in starUML with the help of this handy little template tool:
http://blog.flashmech.net/2008/09/generate-actionscript-3-with-staruml/
I want the tool to generate 'implements Iblah' in the classes but am not sure what connector to use, Aggregation? Dependecy?
Any help much appreciated.
Inheritance and implementations are represented as Class Level Relationships in U.M.L. class diagram.
Depending on the type of relation you should choose between these two.
I suggest you take a look at this:
http://en.wikipedia.org/wiki/Class_diagram#Class_Level_Relationships
Here is a starUML tutorial that should help - http://cnx.org/content/m15092/latest/