Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - DavidL

Pages: [1] 2
1
Suggestions and Requests / Simulate State Charts & Activity Diagrams
« on: October 23, 2009, 02:06:10 am »
I want to pass data and events from one state chart to another over a port/flow port. I created a state chart in one block/class that transmits an event/data.  I want to receive the data in another block/class that has its own state chart.

Does anyone have some code they can share to pass data and events across a flow port from one block to another?

Also, the current code generator for state charts creates an infinite loop around the state chart code. If I have multiple state charts running in parallel and each one is in an infinite loop, my CPU time is all used up. Does anyone have a suggestion on a better way to execute the state machines?  Should I remove the loop and create a class that acts as an executive?  What would you do?

2
I am generating code from state charts and activity diagrams.  I use these diagrams to debug systems designs.  Is there any way to annimate the diagrams in Enterprise Architect as I execute the software? For example, if I tell the state chart to run, I would like to watch the states change everytime an event triggers a transition to a new state.  I would like to single step through my activity diagrams, see which activity/action is currently executing, and view the values of data.

If this is not possible, will this get added to a future version of Enterprise Architect?  We have may people in our organization asking for this feature.  Today we tell them to use other toolsets.

3
General Board / Simulator
« on: September 01, 2012, 07:54:09 am »
Is there a good white paper describing details on how to use the activity diagram / state machine simulator? I have found the Youtube videos located at:

http://www.youtube.com/watch?v=0SFuzrVvL_A

This is a great start. I am looking for more details.

Thanks in advance for your help.

4
General Board / Simulation data flow to/from pins
« on: June 01, 2012, 09:13:43 pm »
I want to create a library of actions/activities that I can re-use in a simulation. For example, a lowpass filter or an integrator.

Does anybody know how to connect the output of my java script action from a class attribute or a simulation variable to the pin on the action?

My goal is to layout a series of reuse action/activities, connect the pins together with object flows, and simulate the results. If I can do this, I can start to test some of the hi-level designs in a fast and rapid manor. I am so close.

5
General Board / Simulation calls to an operator
« on: May 11, 2012, 10:58:18 am »
I am simulating a state machine. On the entry to a state I am able to change an integer attribute of a class. I can see the change in the local variable window. Very cool. How do I call the operator of the class? I can not seem to get this to work? I have tried the following code in the behavior field of the behavior property of the state operators dialog box:

opTest();
MyClass.opTest();
MyClass tst = new opTest();
sim.opTest();

Any ideas?

6
General Board / _metatype for Action (call behavior)
« on: June 09, 2010, 12:56:19 am »
I would like to create a SysML stereotype for action (call behavior). There is a metaclass for action. I know about the _metatype option to tailor a class into a block. Can I do the same thing for an Action (call behavior)? How do I do this?

A search in EA help for _metatype provides an article for "Define a Stereotype as a Metatype". The example states that _metatype: string = Block will create a SysML block. Is there a help or web article that lists all of the SysML options for _metatype?

7
General Board / RTF Figure Caption
« on: June 08, 2010, 05:50:07 am »
I would like to import my EA generated RTF file into a MS word document with other figures. I need the figures to renumber to match the report.

MS Word uses the style "Caption" or Figure {SEQ Figure \* ARABIC} for figures. If I delete the EA RTF file Figure 1 and replace it with "Insert|Reference|Caption ..." from the MS word main menu, I get the behavior I want.

Does anyone know how to create a style that matches the MS Word Caption style for Figures? Is there a better way to do this?

8
General Board / View the contents of an old baseline -peer reviews
« on: December 17, 2009, 07:57:44 am »
I want to setup a peer review on my model. I am using baselines to capture the state the model is in at the time of the peer review. Each person that peer reviews the model needs to look at that baselined version of the model.

The help on baselines said that old baselines are compressed XML stored in the main database. Is it possible to view the contents of a baseline without restoring it?

I would like to create a query (?) in "My Views" or in "Model Views" that shows the contents of the model at an old baseline. I want to look at this old baseline without changing the main model at all. Is this possible? Can anyone point me in the right direction?

9
General Board / Multiple users editing a shared model under VC
« on: November 03, 2009, 06:50:39 am »
Our entire team wants to work off of a common DBMS and wants to use Subversion for version control. We need many people in our facility to work on the same package at the same time. We also want to check-in the changes to exchange work over the WAN with remote facilities.

Is it possible for two or more people that are running on the same DBMS to make changes to a package that was checked out from Subversion? Even though multiple people are on the same DBMS, it looks like we each need to checkout a package from subversion to work on it.

Is there a setting or a way to setup user permissions to enable two people to work on the same package at the same time?

10
General Board / Sequence Diagram Operators
« on: October 23, 2009, 01:34:33 am »
Is there any way to perform a "locate in diagram" from an operator in a block/class to find the message it is attached to in a sequence diagram?

Along the same lines, is it possible to find all operators in a model that are not defined (or connected to) a message on a sequence diagram?



11
General Board / RTF Report Generation Diagram Size
« on: October 07, 2009, 06:46:36 am »
Some of the sequence diagrams in my RTF report are very small and have a lot of white space to the right of the last block in my sequence diagram.  How do I fix this.  I have noticed something interesting about the diagrams that end up with a lot of white space.  If I click on the "Fit to view" button when the diagram is open, the diagram zooms way out.  The size of this diagram is what I see in my RTF report.  On diagrams that are the right size in my RTF report, clicking on the "Fit to View" button does not zoom way out.

I could not find any options to re-size the diagram such that "Fit to View" and the RTF report generator do not zoom way out when they render pictures of my sequence diagrams.  Does anybody know how to do this?

Thanks in advance.

12
General Board / Parametric Model Simulation
« on: April 22, 2009, 04:19:58 am »
I have created a very simple parametric model and would like to simulate it.  I have been looking at the following pages:

http://www.sparxsystems.com/uml_tool_guide/extending_uml/simulating_a_sysml_model.html
http://www.sparxsystems.com/uml_tool_guide/extending_uml/sysml_parametric_models.html

I created the following model:



I tried to run the sim and I do not get any input parameters listed.



I have the following code setup for my Adder block:
out = a * b.

What am I missing?

13
General Board / Simulate Parametric Diagram 2
« on: April 25, 2009, 06:40:52 am »
I am trying to simulate a parametric model.  When I try to run the model I get the following error on the output screen:

out
illegal character, line:35

I have the following questions:
1) How can I look at line 35 so I can fix my model?
2) Is there a way to run the simulation from a script instead of from the simulation configuration menu?

FYI I am simulating the model by right clicking on the parametric diagram background and selecting SysML | Simulate Diagram ...

14
General Board / Simulate a state chart
« on: April 14, 2009, 05:10:48 am »
I am using EA 7.5 beta with SysML and am looking for directions on how to simulate or execute a state machine.

Is there a white paper or a computer based training module that shows how to do this?

I want to understand how to trigger events (from a user interface ?), watch the states change, view the value of data/events, and see the resulting outputs (in a user interface ?).

15
General Board / Version 7.5 Compatibility
« on: April 08, 2009, 06:00:57 am »
If I save a model in EA 7.5 (beta) can someone else edit the file in EA 7.1 or 7.3?

Pages: [1] 2