Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Representing a singleton in star uml

 
Luke Murphy
Ranch Hand
Posts: 300
  • 0
  • 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
  • 0
  • 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.

 
Pavel Kubal
Ranch Hand
Posts: 360
  • 0
  • 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.
 
Kuppusamy Venkatasubramanian
Ranch Hand
Posts: 91
  • 0
  • 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
  • 0
  • 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.

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic