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: Generating Java code from state machine
Topic Summary: only skeleton Java code is generated
Created On: 25-Sep-2006 19:51
Status: Read Only
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.
 25-Sep-2006 19:51
User is offline View Users Profile Print this message


Ramandeep Ahuja

Posts: 10
Joined: 25-Sep-2006

Hi,

I have Tau 2.7 and Windows XP. I am trying to auto generate Java code from a state machine diagram that I created. I have a single active class with a single port. I recieve an input signal do some processing on a class variable in the state machine.

I only see skeleton code (class definition) generated but nothing in the state machine is converted into java code.

How do I get java code for logic in the state machine for a class ?

Thanks.
Raman

-------------------------
Raman
Report this to a Moderator Report this to a Moderator
 25-Sep-2006 20:58
User is offline View Users Profile Print this message


Greg Gorman

Posts: 75
Joined: 4-Oct-2002

Hi Raman,
We do not support generating Java code for statemachines at this time. I have it on the roadmap for future work, however I'm also interested to hear from Java programmers about the usefulness of this.

Are you using lots of statemachines in your design?

Would you rather use Activity Diagrams instead?

If you want both, which is more useful? Higher priority?

Thanks,
Greg

-------------------------
Greg Gorman
Vice President, Product Management
Modeling and Test Products
Telelogic AB
Report this to a Moderator Report this to a Moderator
 25-Sep-2006 23:41
User is offline View Users Profile Print this message


Ramandeep Ahuja

Posts: 10
Joined: 25-Sep-2006

Hi Greg,

Thanks for the quick response. Yes most of the design is statemachine driven at least for my current project. Do Activity Diagrams assist in code generation ? I have not used Activity Diagrams in the tool yet. What does Tau allow me to do with an Activity Diagram ?

I think state machines allow us to go from a model to actual code. They are also easier to follow. The advantage of a state machine is creating a model that can be verified using the Model Verifier.

Thanks
Regards,
Ramandeep

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


Greg Gorman

Posts: 75
Joined: 4-Oct-2002

Raman, I appreciate your comments. We'll be working on that in 2007 once we finish a few other pressing issues, I hope!

You can execute AD's once you have created an Activity Model. It's still in an early stage but it works pretty good. We actually transfrom them to Statemachines and then execute them with the "regular" Model Verifier.

Greg

-------------------------
Greg Gorman
Vice President, Product Management
Modeling and Test Products
Telelogic AB
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.