Skip navigation

My second group presentation is about UML statecharts. I have not used statecharts before but after spending an evening and an afternoon designing a statechart for a lift I have gained a thorough understanding.

In statecharts we have:

  • States
  • Events
  • Transitions
  • Guard conditions
  • Initial and End states
  • Actions
  • Internal actions: entry and exit actions
  • Activities
  • Internal Transitions
  • Completion Transitions
  • Composite States: super and sub states
  • History
  • Timers

Statecharts attempt to model all states of a single object and how you get from one state to another. Events trigger transitions to other states. Each transition has a guard condition to distinguish itself and each transition may have an action that is performed. When a new state has been entered entry actions may be performed and before a state is exited an exit action may be performed. Whilst a state is active an activity action can be run. When a state is complete a completion transition leads the object into a new state. A completion transition does not have an event name but will include a guard condition and any actions. A state can have a timer function so that after a period of time there will be a transition from one state to another.


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: