Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic TAU (steve huntington)
Decrease font size
Increase font size
Topic Title: Composite State Machine
Topic Summary: How to show in Tau
Created On: 26-Sep-2006 00:53
Status: Read Only
Topic Rating:  Terrible (1 ratings have been cast)
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 26-Sep-2006 00:53
User is offline View Users Profile Print this message


Ramandeep Ahuja

Posts: 10
Joined: 25-Sep-2006

Hi,

I am trying to create a composite state machine in Tau. Tau allows creating a state machine within a state. It allows to define Exit and Entry Connection points.

How do I show the entry and exit connection points in the highest level state machine diagram  ? How do I show multiple inputs and outputs from a composite state ?

Thanks
Raman

-------------------------
Raman
Report this to a Moderator Report this to a Moderator
 26-Sep-2006 22:49
User is offline View Users Profile Print this message


Ian Barnard

Posts: 91
Joined: 4-Jul-2002

Ramandeep

This section is the forum is for Tau UML Suite, but I assume you're using Tau/Architect or Tau/Developer?

These instructions are for 2.7.1, but the steps should be similar for earlier versions.

Let's do the entry point first:
1. Define the composite state: double-click a state symbol, and in the Create Presentation dialog box choose the New diagram tab->Statemachine Diagram, and click OK.
2. Create an entry point: In the model view, right-click the initialize() operation below the composite state->new->EntryConnectionPoint; rename it to something sensible, e.g. entry1.
3. Define the transition for the entry point: On the Statemachine diagram inside the composite state, define the transition for this entry point by putting a start transition with the name of the entry point on the symbol, e.g. entry1, and then connect it appropriately.
4. Reference the entry point: At the higher-level, specify entry into a composite state via a specific entry point by showing a next-state (i.e. at the end of a transition of flow) which contains the syntax "<state> via <entry>", e.g. "s1 via entry1" (without the quotes).

These steps can be done in a different order if you have to, although 1 must be done before 2.

For the exit point:
1. Define the exit point: On the containing (higher-level) statemachine, in the model view right-click the initialize() operation->new->ExitConnectionPoint; rename it to something sensible, e.g. exit1
2. Define the transition for the exit point: On the diagram for the containing statemachine, specify the name of the exit point, either as a guard on a 'Simple transition line' from the composite state, e.g. [exit1], or in a guard symbol containing exit1 in a flow line. to wherever it should go.
3. Reference the exit point: Inside the composite state, put a return symbol with the name of the exit point exit1.

BTW this is all covered in the Tau introductory training course; please contact your local sales office if you need a training course.

HTH
Ian

-------------------------
=============
Ian Barnard
Principal Consultant
Telelogic UK, an IBM company
Report this to a Moderator Report this to a Moderator
 27-Sep-2006 18:14
User is offline View Users Profile Print this message


Ramandeep Ahuja

Posts: 10
Joined: 25-Sep-2006

Hi Ian,

Thank you very much. That is exactly what I was looking for!

At the highest level the composite state is depicted as separate state symbols per entry port for example "S1 via entry1"  "S1 via entry2" ... where S1 is the composite state ?

Thanks.
Raman



-------------------------
Raman
Report this to a Moderator Report this to a Moderator
 28-Sep-2006 11:34
User is offline View Users Profile Print this message


Ian Barnard

Posts: 91
Joined: 4-Jul-2002

Raman

Yes, that's exactly how it works.

Regards
Ian

-------------------------
=============
Ian Barnard
Principal Consultant
Telelogic UK, an IBM company
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic TAU forum.
There are currently 1 users logged in.
The most users ever online was 15 on 31-Mar-2008 at 16:22.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.