• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Representing a singleton in star uml

 
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
According to the UML 2 spec, I should be able to represent a Singleton in a sequence diagram.
I can't in Star UML. Does anybody know a free UML tool which can do everything in the UML2 spec?
Thanks.
 
Luke Murphy
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just an update on this. Star UML does provide some support for representating classes as singletons. you can select the "Apply Pattern" and then select the singleton pattern. Pretty cool. But the representation is that the class gets a self reference. this can look a bit clunky and I'd much prefer the "1" notation in the right hand corner of the class. This is much neater.

I can't get this. Any ideas?

I have also tried another tool: Software Ideas Modeller which looks really good but can't get this "1" notation on that either.

Does anyone know any free tools I can get this on?

Thanks.

 
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Aren't you overcomplicating such a simple thing? When I wanted to emphasise specific design pattern in my assignment I just used stereotype and that's all.
 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I used streotype to denote singleton and passed the exam.

Cheers,
Kuppusamy.V.,
 
Luke Murphy
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Pavel Kubal wrote:Aren't you overcomplicating such a simple thing? When I wanted to emphasise specific design pattern in my assignment I just used stereotype and that's all.


I agree. But I am trying to use the SCEA to learn other things not just what I need to pass the exam. I may not even have a singleton in my solultion.

I thought this is the best place to post these types of questions.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic