More UML Problems.

  • Thread starter Thread starter Jeff Louie
  • Start date Start date
J

Jeff Louie

Hello....

I continue to run into problems trying to represent basic C# concepts in
UML. Besides no standard notation for C#s Property, I see no standard
way to represent a Structure, differentiate between overridden and new.
I
have tried this for a Property.

..........................................................
| MyClass |
..........................................................
| <<get>><<set>>MyProperty : int |
..........................................................
| |
..........................................................

Any thoughts?

Regards,
Jeff
 
Jeff,
I continue to run into problems trying to represent basic C# concepts in
UML. Besides no standard notation for C#s Property, I see no standard
way to represent a Structure, differentiate between overridden and new.
I
have tried this for a Property.

.........................................................
| MyClass |
.........................................................
| <<get>><<set>>MyProperty : int |
.........................................................
| |
.........................................................

Any thoughts?

Good question Jeff. This may be one of those personal choice questions. To
me, it all depends on the level of detail that one needs to express on the
UML diagram. For example, at one level of detail one may just want to
express:

..........................................................
| MyClass |
..........................................................

On another diagram, a different level of detail may be appropriate:

..........................................................
| MyClass |
.........................................................
| MyProperty : int |
.........................................................
| |
.........................................................

And still another diagram my need to know about the "Property-ness", such
as:

..........................................................
| MyClass |
.........................................................
| <<Property>> MyProperty : int |
.........................................................
| |
.........................................................

And still another may need to show the implementation of the property
methods:

......................................................................
| MyClass |
....................................................................
| MyProperty : int |
.....................................................................
| <<MyProperty>> get( ) : int |
| <<MyProperty>> set( value : int ) : void |
.......................................................................

I guess there are a gazillion ways to express the level of detail that one
might need on a UML diagram for some stated purpose.

Not knowing who will be reading the diagrams and what they should learn from
those diagrams, it's difficult to know or recommend which encantation to
use.

Good luck on your endeavors!

Regards,

Randy
 
Randy... Thanks for the sample UML! I will use it.

Regards,
Jeff
Not knowing who will be reading the diagrams and what they should learn
from those diagrams, it's difficult to know or recommend which
encantation to use.<
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top