Book a Demo

Author Topic: Problems with Statecharts  (Read 5697 times)

johannesjakob

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • hang loos
    • View Profile
Problems with Statecharts
« on: August 12, 2007, 09:49:39 pm »
Hi,
I want to model the behavior of a class. I use state machines to do so. The underlying paradigm is "event-driven-modeling", that means I want to react on "operation calls" (signals) that can be called on the corresponding class.
Now I have at least two problems:

1. In transitions between states in the state machine I only can select (or create) "Trigger-Elements". How can I map operations to such triggers?

2. Sometimes I like to respond in more than one transition to one trigger, but a trigger can only one time. If I choose the same trigger from the trigger list an press the safe button a copy form the selected trigger occurs. Isn't it is a bug?

Thanks for your help!

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Re: Problems with Statecharts
« Reply #1 on: August 13, 2007, 03:44:12 am »
Can you clarify a bit?  I'm not sure whether your question is about being UML compliant or with the Unique EA Interface.

-Jim
Verbal Use Cases aren't worth the paper they are written upon.

johannesjakob

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • hang loos
    • View Profile
Re: Problems with Statecharts
« Reply #2 on: August 13, 2007, 04:20:57 am »
The overall goal is an executable UML2 compliant model using "Class Diagrams", "Composite Structure Diagrams", and "State Chart Diagrams" according to "UML/RT" in "Rose RT".

In EA I like to do something similar. I like to react in state machines to operation-calls because this is the only way I know how transitions can be fired (event-driven paradigm). In my opinion an operation-call is corresponding to an trigger event. And in a state chart I want want to react in serverall transitions to one event.

I hope I could explain the problem

johannesjakob

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • hang loos
    • View Profile
Re: Problems with Statecharts
« Reply #3 on: August 13, 2007, 08:52:14 pm »
Hi,

the second part of my problem has been accepted as bug by EA and will be fixed in a further release. But the first problem is still there. How can I map operations to triggers?

Greetings,
JJ

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: Problems with Statecharts
« Reply #4 on: August 13, 2007, 08:59:01 pm »
I know that you can map an operation to an action (callOperation) and an activity to a transition (as an Effect). But in fact I don't know how to help you.
Jan 'Bary' Glas