Book a Demo

Author Topic: Class Operations And State Behaviour  (Read 14205 times)

sbaldrick

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Class Operations And State Behaviour
« on: December 23, 2010, 05:42:41 am »
Thankyou EA,

I believe that this is the first UML modeling tool that allows me to associate a statemachine to a class and add behaviour to that statemachine that directly relates to the operations that are attached to that class.

When adding behavior to a transition, EA allows you to specify that the behaviour already exists in the model. When selecting the behaviour, one can select an operation associated with the class.

This seems completely natural to me, and I can't imagine why other tools do not automatically request the behaviour from the class operations.

It would be nice, if EA autmatically assumed that the behaviour is within the class, so that I did not have to search for it though, but ..  ::)

Les.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Class Operations And State Behaviour
« Reply #1 on: January 03, 2011, 07:29:29 pm »
Les,

In our case this "assumption" would always be wrong, but then again we aren't using an OO method...

Geert

sbaldrick

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: Class Operations And State Behaviour
« Reply #2 on: January 04, 2011, 04:13:17 am »
Geert,

What other types of method are there?

 ;)

Les.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Class Operations And State Behaviour
« Reply #3 on: January 04, 2011, 07:21:45 pm »
Quote
What other types of method are there?
Don't get me started >:(
No, sadly the OO paradigm has not been generally accepted in the corporate world. One of the popular "other" paradigms is to divide data and behavior into different entities.
Often this paradigm is inspired by (a misunderstood abomination of) the Entity Control Boundary pattern.

Geert

sbaldrick

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: Class Operations And State Behaviour
« Reply #4 on: January 05, 2011, 04:25:28 am »
Often this paradigm is inspired by (a misunderstood abomination of) the Entity Control Boundary pattern.

I really dislike that pattern recommendation within RUP. I see no reason tto be distributing functionality across Entities, Boundaries and Controls during realization of use cases.
The first stage of use case realization should be simply defining analysis classes without assigning 'types' to them.

I guess you agree, and have experienced the consequences.

Les.
« Last Edit: January 05, 2011, 04:27:22 am by MundayL »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Class Operations And State Behaviour
« Reply #5 on: January 05, 2011, 07:33:21 pm »
Les,

The ECB pattern isn't bad in itself, when used properly.
In fact, when designing a system you can usually indeed categorize the classes you create to be either an Entity, a Control or a Boundary.

On the other hand I don't really see the added value of this categorization, there are other types of categorization that I think are of much greater interest.

Geert

Steven

  • Guest
Re: Class Operations And State Behaviour
« Reply #6 on: January 05, 2011, 08:14:44 pm »
Quote
... isn't bad in itself, when used properly ...
That goes for everything in life. So, which method is there to use that is so easy to use that it can only be used properly?  :-X

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Class Operations And State Behaviour
« Reply #7 on: January 05, 2011, 08:34:54 pm »
Quote
Quote
... isn't bad in itself, when used properly ...
That goes for everything in life. So, which method is there to use that is so easy to use that it can only be used properly?  :-X
I suppose this is a rethorical question :-/

Geert

Steven

  • Guest
Re: Class Operations And State Behaviour
« Reply #8 on: January 05, 2011, 08:40:44 pm »
@Geert - yes, it is.