UML for a Role

2013-01-10 Thread thiagoglauco
Hi there. I'm new at moose@perl.org and just like to know how you use to represent a Moose::Role in a UML diagram? Just like an ordinary class and type? Thiago Glauco Sanchez Tec. Telecom. Pl. - Petrobras SA ITIL, MCSO, ECS ( Routing, Wireless, Switching )

RE: UML for a Role

2013-01-10 Thread Jeff Hallock
I represent it using an interface. -Original Message- From: thiagogla...@petrobras.com.br [mailto:thiagogla...@petrobras.com.br] Sent: Thursday, January 10, 2013 12:50 PM To: moose@perl.org Subject: UML for a Role Hi there. I'm new at moose@perl.org and just like to know how you use

RE: UML for a Role

2013-01-10 Thread thiagoglauco
Thanks Jeff. Besides a Role does Moose have other thing near an abstract class? (I know roles are not abstract classes) I'm writing a doc about rational methodology and Moose, that is why I'm asking. De: Jeff Hallock jhall...@wbanda.com Para: thiagogla...@petrobras.com.br

Re: UML for a Role

2013-01-10 Thread Fields, Christopher J
Not sure if this helps, but there is a SO post about how to represent roles/traits/etc in UML. http://stackoverflow.com/questions/2690249/how-do-i-represent-a-mixin-role-trait-with-uml-properly chris On Jan 10, 2013, at 12:32 PM, thiagogla...@petrobras.com.br wrote: Thanks Jeff.

RE: UML for a Role

2013-01-10 Thread Jeff Hallock
Well, there are traits – which if you are not familiar, is just a role than can be applied to an instance instead of a class. And then you still have your abstract classes. I don’t use them that often myself, but sometimes it is appropriate to use instead of a role. Here as an example of how