Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Representing a singleton in star uml

 
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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.

 
Evil is afoot. But this tiny ad is just an ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic