Originally posted by Mark Spritzler:
Except for creating notes, is there a way to show the assignment of a variable in a sequence diagram? There are no method calls just
int a = 0;
Thanks
Mark
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Ilja Preuss:
I'd go with the note, if I really had to show it.
Are you sure that a sequence diagram is the right way to go in your case? Sometimes a little bit of pseudo code simply makes more sense...
I would just put "a = 0" where they have system:ReportingSystem calling determineAvailableReports() on itself.
Originally posted by Ilja Preuss:
I'd go with the note, if I really had to show it.
Originally posted by Ryan McGuire:
Isn't a simple variable assignment more conceptually similar to a method call than to the type of stuff that normally goes in a note?
Isn't a variable assignment an action that an object performs, which is what the arrows in a Seq Diag are explictly for?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Mark Spritzler:
Well, I'd think that there should be a construct for assignment, but there isn't in UML 1.4 Sequence diagrams.
Those arrows are all method calls. If I put an arrow using Together and type in "a=0" It would either give me an error or try to create a new meethod called "a=0()".
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Mhh, I on the other hand don't miss it. Probably a case of http://www.martinfowler.com/bliki/UmlMode.html
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Ilja Preuss:
UmlAsSketch here...
Consider Paul's rocket mass heater. |