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 - philchudley

Pages: 1 2 [3] 4 5 ... 8
General Board / State Machine Simulation
« on: September 24, 2013, 06:13:49 am »
Hi All

When executing a state machine simulation with behaviour of state operations specified in JavaScript and using Interpreted simulation, is there a maximum number of steps / simulation code instructions that are executed?

If so, can this be configured?

I have a simple state machine, that goes into a "flip flop" between states (i.e. it never ends) this is deliberate, strange though it sounds. When I run the simulation, it ends automatically after seemingly random number of steps.

In order to simulate a delay in a state, I have used the following code

sim.endOfPhase = false;
while (!sim.endOfPhase) {

         sim.endOfPhase = (Math.floor(Math.random()*100+1) == 1);
        Trace("end of night  phase  = " + sim.endOfPhase);

This code is in a behaviour of each "flip flop" state, so that the simulation just simply oscillate between states very rapidly.

It appears, that there is some kind a execution limit, but can anyone confirm this?



General Board / Activity Diagram Call behaviour Action Error
« on: January 30, 2013, 12:18:15 am »
Hi All

Anyone else notice the following behaviour in EA version 10 build 1005?

1) Create a new UML Activity Diagram
2) Add a Call Behaviour Action onto the diagram
3) Set the behaviour to an Activity
4) Now try to connect this call behaviour action to any other Activity element  - you will get a [highlight]The requested Connection is not UML compliant error[/highlight]!

Happens whether or not the call behaviour action is on the diagram, or inside an activity element, in addition the same error occurs when the diagram is in the package or owned by an activity

Never used to happen

Bug report will be raised



General Board / WADL Import
« on: September 27, 2012, 11:17:39 pm »
EA reverse engineers WSDL files for SOAP services, does anyone know of a method of reverse engineering WADL files for REST services?



General Board / SysML and EA 9.2
« on: November 18, 2011, 08:04:52 pm »
Hi Guys

The ability to show parts, values, ports, references etc as compartments in blocks is a most welcome functional enhancement.

However two comments:

1) It appears that these compartments always appear (for example when a part is added to a block), is there any way to make them appear as an option.
2) More importantly, I have figured out parts, ports and references ... but for the life of me I just cannot get values to appear. The user guide is of not assistance as no details are given and the example SysML model in EA-Example.eap does not use values  :'( Would most appreciate any help in getting this to work



General Board / Messages numbers in sequence diagrams RTF output
« on: July 02, 2012, 05:43:08 pm »
Hi All

Been asked this by a client, and I am pretty sure of the answer, but just in case.

Is it possible to output the message number for sequence diagram messages as a data field in the RTF output?

I cannot find any way, and I also believe that the numbers are not stored in the repository.

Can anyone confirm my beliefs?



General Board / Object Run State in SysML 1.2 Parts
« on: January 24, 2012, 03:34:07 am »
Hi all

I am trying to model Trade-offs in SysML 1.2, where a structural model can be instantiated as parts and then the run state can be set for each part and appropriate values entered corresponding to attributes in the block.

This is pretty much equivalent to instantiating Classes as Objects in UML, but that is where the comparison ends!

I am using the latest build of EA version 9.2

First, if valueTypes are used as values of the blocks, then the object state cannot be set, since the variable drop down list is blank. Attributes MUST be used as in UML.

Secondly, when a number of blocks are re-used as properties (equivalent to reusing UML classes as objects), and selecting Copy Connectors ... the connectors DO NOT appear as they do in UML!

Thirdly, although the runstate of a part can be set, the run state is NOT visible on the object diagram, as it does in UML!

Workround ... for the parts, remove each stereotype and the runstate appears.

Workaround ... for the connectors, copy all the Blocks, remove the stereotypes and create the object diagram (also displays the run state)

Both workarounds are clumsy.

Any other SysML modellers out there, found the same, or know of a better workround.

Is the behaviour I have described expected ... a feature ... or a another bug in the SysML implementation?



General Board / Further Issues with Parts Compartments SysML 1.2
« on: December 10, 2011, 11:15:17 pm »
Further to the comments regarding the parts compartments for SysML 1.2 blocks being shown optionally rather than always being visible, I have discovered the following issues:

1) When copying the diagram to the clipboard and subsequent pasting (eg into Word or Powerpoint), the parts / ports / values compartments do not show up. Printing the diagram is OK
2) Parts may have multiplicity. EA captures this correctly and shows the multiplicity in the Project Browser, however the multiplicity does not show alongside the part name in the Parts compartment.



General Board / Generalization Sets
« on: October 04, 2011, 03:04:30 am »
Although an advanced use of UML Generalization it is possible in EA to create Generalization Sets to constrain inheritances.

For example a base class of Engine could have two sub-classes 4 Cylinder and 6 Cylinder. We can use a Generalization Set to specify that an Engine can only be either 4 Cylinder or 6 Cylinder, but not both {disjoint} and the only engines are 4 Cylinder and 6 Cylinder {complete}

EA allows this information to be caputured on the New Generalization Set dialog - disjoint and complete are check boxes

However only the name of the Generalization Set appears on the diagram.

Does anyone know if (and how) the disjoint and complete qualifiers can be made to appear?

Checked all the usual places, diagram properties, connector properties, tools | options



General Board / Custom references on RTF
« on: September 01, 2011, 07:31:54 pm »
Hi All

Is is possible to access the custom references for an element within the RTF template? I cannot seem to find it anywhere

I can access custom references by a SQL query, but it would be convenient to have direct access in the RTF template



General Board / SQL Search failing on Model Document
« on: July 28, 2011, 12:46:26 am »
Hi All

Having read the user guide, it is very specific as to what MUST be included in a custom SQL search for use with a Model Document element (search specified by a tagged value)

Here is my search

from  T_Object a, T_Object b, T_ObjectProperties
where b.Name = '<Search Term>'
and a.Object_ID = T_ObjectProperties.Object_ID
and T_ObjectProperties.Property = 'DBApplicationModuleRef'
and b.ea_guid = T_ObjectProperties.Value

When run from the search view, all is well and I can select the items listed in the result, right-click and generate my documentation using a rather simple RTF template

BUT, when set as a tagged value in a model document, a suitable value entered in the search term tagged value, it fails every time with a rather unhelpful message

"Documentation Generation Failed"

I have checked the usual suspects

I have not got any packages in my Model Document element
The search most definately returns a list of elements

Any ideas?

I did also try a very simple sql search (the one in the user guide), that also failed in the same way!

I using the latest build of Version 9.0, but it also fails in Version 8.0



General Board / Execution Analyser under Windows 7
« on: May 26, 2011, 10:27:21 pm »
Hi All,

I have a demo example in EA to show the creation of a sequence diagram from executing a C# .net application.

This worked fine until my laptop was upgraded to windows 7

Upon trying the demo for the first time today (I don't use it very often)

The following error message occured

Running build script - Northwind Employees      
C:\Projects\Northwind Application Test>"C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ /build Debug Northwind Application Test.sln"      
The directory name is invalid.      
C:\Projects\Northwind Application Test Build completed with exit code 1

I am guessing EA is complaining about Program Files (x86), which is path to Visual Studio in Windows 7, it worked fine with Program Files

Any suggestions guys?


General Board / EASL Code Generation
« on: January 08, 2011, 01:49:33 am »
Hi All

I am having a little look at the EASL code generation in EA, specifically C# code from a sequence diagram. The User Guide is a little scant, but implies that a Loop combined fragment will generate an iteration, and indeed it does.

Below is an extract from the code generation script

$guard = %EASL_GET("Property", $guardedAction, "Guard")%
$expression = %EASL_GET("Property", $guard, "Expression")%
$upper = %EASL_GET("Property", $guard, "Upper")%
$lower = %EASL_GET("Property", $guard, "Lower")%

Now, the EASL Property "Expression" can be set by using the Properties of the Combined Fragment, and this setting comes out in the generated code. BUT, if we look a little further into the code generation script ...

%if $expression != ""%
while ($expression)\n
%elseIf $lower != ""%
for ($lower; $upper; ; )\n
while (true)\n

We find the $expression (if set) will always generate a while loop ... perfectly OK.

However, how do we get a for loop?

The above script implies, that if no expression is set AND EASL property "lower" is set then we get a for loop

Does anyone know how set a value for the EASL property lower ... what does this correspond to on the combined fragment. I can find no property, or tagged value



General Board / Forks and Joins Missing from Project Browser
« on: August 26, 2010, 01:17:53 am »
I am using the latest build of EA and have just noticed that UML Forks and Joins do not appear in the Project Browser, depsite the fact that they have the Properties as all other UML elements.

In addition, there is no functionality to "Find in Project Browser" ... not surprising since they are not there I guess!

Is this deliberate on the part of Sparx, and if so why? After all all other UML Activity elements appear in the Project Browser as usual.



General Board / Version 8 Workflows
« on: March 31, 2010, 11:07:25 pm »
When version 8 was announced, I was very excited about two features.

1) The structured use case
2) Workflows

I have been evaluating the betas (including the latest Beta 3) and have found the stuctured use case most useful and am pleased with the result.

However, not the same with workflows. The help is very brief, and I cannot find any worked examples not how to use the scripts.

I did manage to create a new workflow script, which gave me a "boiler plate" scrip with comments. I modified one of the permission from true to false (the ability to change status) and yes I did change both the relavant methods.

I saved the script.

But no effect, I can still change anything I want.

How do you get the scripts to take effect? Do they only work on a named user with the security enabled?

I would be most grateful if someone out there has got this to work, and if so how?



General Board / Attribute Qualifiers
« on: April 19, 2010, 07:03:17 pm »
I have noticed (new to EA 8.0?) that it is possible to create a Qualifier for an attribute in a class.

Some of the properties of this Qualifier are

Redfined Property
Subsetted Property

Can someone explain in plain language, what is the use of this feature, (great if supplemented with a practical example).

Help and User Guide not much help as it just states "The Qualifiers dialofg is used to define the Qualifier of an Association connector end, Port, Part, or Attribute"


Pages: 1 2 [3] 4 5 ... 8