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.


Messages - Volkan

Pages: [1] 2
2
General Board / Re: How do I add reception to a SysML block?
« on: October 13, 2016, 12:15:23 am »
The current version of EA does not provide support for receptions.

You can somewhat create that appearance by creating a stereotyped operation. In SysML blocks must designate whether it makes requests or handles requests for the behavioural features it defines. Hence, you need to set the DirectedFeature stereotype on the operation. Then you can add the additional stereotype 'Signal'. Ideally this keyword should appear after (prov, reqd, or provreqd), but EA cannot do this. Instead the keyword is displayed at the compartment top comma separated like this: «DirectedFeature, signal». Not very nice.

/H

Thank you very much for the reply! It is really helpful.

3
General Board / Re: How do I add reception to a SysML block?
« on: October 13, 2016, 12:14:45 am »
My last contact with SysML is too long ago, but that looks just like a stereotyped operation. Eventually such an operation is present somewhere in the toolbox. (I would likely just create that by hand)

q.

Thank you very much for the reply!

4
General Board / Re: How do I add reception to a SysML block?
« on: September 13, 2016, 12:22:19 am »
I don't have SysML installed, but you should find a Port element in the toolbox. Just drag that over a block. Check the tagged values of the Port to set in/out.

q.

Thank you very much for the quick response.

For reception I mean "A reception represents a behavior that a block performs when a client sends a signal that triggers it. Stated formally, a reception is invoked by a signal event." It occupies a compartment in a block.

...................................................................................
|                                      receptions                          |
|«signal» <reception name> ( <parameter list> )     |
|                                                                                 |
...................................................................................

5
General Board / How do I add reception to a SysML block?
« on: September 12, 2016, 11:56:27 pm »
Hi! I tried to create reception for a SysML block, but I cannot find such an option within EA. How do I add reception to a SysML block? Thank you so much. :)

6
General Board / Re: Does EA only generate a code template?
« on: June 21, 2016, 04:43:05 pm »
- Open the properties of an operation
- Lower right you see tabs: Parameter, Notes, Behavior, ...

There you are :-)

q.

Hi qwerty! Thank you! It is very nice of you! :-*

7
General Board / Re: Does EA only generate a code template?
« on: June 20, 2016, 11:26:04 pm »
Hi Volkan,


Well, according to the help it is possible to get code from behavioral models, but if what's described there is any different from, or any improvement on, what's shown in the tutorial I couldn't say.

Personally, I think generating source code from UML models is a fool's errand because UML is a rubbish programming language. So on this topic I'm sitting with qwerty and Peter over here in Camp Curmudgeon. You should come visist! We've got a flag! :)


/Uffe

Hi Uffe! Many thanks for the reply!

8
General Board / Re: Does EA only generate a code template?
« on: June 20, 2016, 11:25:08 pm »
To make a "come out" here, I do not use EA code generation at all, even not to generate the “code framework” (what would work fine from my experience). If I need code level stuff in my model I go the other direction (“reverse engineering”).
Even if generation of algorithm would be possible/good, I would not use that feature because I belief that specifying algorithms to a level of detail that code can be generated is much more effort with UML than writing the code. Further on you have to know what code the code generator generates from your model, what makes the issue quiet complex.
For me UML is a specification language rather than a programming language.
I do not say that code needs to be always written in a text editor (for control functions there exist several good graphical programming environments) but UML for me is not a graphical programming language at all (at least not as long as somebody do not only show me that doing so is not only somehow possible but making sense).
Hi Peter! Thank you very much for the advice! I really appreciate that!

9
General Board / Re: Does EA only generate a code template?
« on: June 20, 2016, 11:07:04 pm »
EA will only generate the class framework (properties, getters, setters and if you habe the right license code for state machines). You can put code in the behavior property of a class and it will appear in the generated code, but round tripping with that will not really work. I once used RR for code gen. They put hooks in the generated code and round tripping was - so to say - possible. But no real fun. From my POV this procedure with EA is even less fun. But up to creating code EA is a very nice tool. My 5 cents.

q.

Hi qwerty! Thank you very much for the nice reply! Could you please explain a little bit more on " the behavior property of a class"? Because when I right click on a class and select properties, there is no option as behavior property. Thank you again!

10
General Board / Does EA only generate a code template?
« on: June 19, 2016, 11:53:14 pm »
Hi! I am a beginner in learning EA system engineering edition.

I just watched a introduction on generating HDL code based State Machine model. The example used in that introduction is Portable Audio Player.
I read the VHDL code generated carefully and discovered that the code is only a template without doing any actual computation. You have add the computation to the code template to complete the implementation. Does it mean that EA only generate a code template? Is it possible to generate a code including the actual computation part using EA?

Thank you in advance! ;) ;)

11
General Board / Re: Help! A simulation problem with EA!
« on: June 19, 2016, 11:34:10 pm »
Another important reason: the javascript  that I added to the constrained blocks does not support the self-defined datatype vector using sysml.  :'( :'( :'(

12
General Board / Re: Help! A simulation problem with EA!
« on: June 16, 2016, 11:58:26 pm »
Mainly it is because I did not set the proper input as the X-Axis value.

13
General Board / Help! A simulation problem with EA!
« on: June 15, 2016, 11:41:18 pm »
Hi! I am a beginner in learning EA system engineering edition.
I practiced establishing a model using SysML. I want to simulate a constraint block for practice. The constraint block is intended to centre a very simple array [1,2,3,4].
I added some JavaScript to the constraint block and established a parametric diagram and then did the simulation. But I got nothing in the simulation result.
When I just changed the JavaScript into "OutputT=OutputT;" and output the input array, the simulation result was correct. Is there something wrong with my JavaScript?
Could someone please help me with this problem? Are there any tutorials on adding JavaScript to constraint blocks? Thank you in advance!

The following is the JavaScript I added:

var aa=new Array();
var sum;
var avg;
var mean=new Array();

aa=InputT;   //InputT is an array, the value is =[1,2,3,4];


for(var i=0;i<4;i++)

     sum+=aa;
}

avg=sum/4;    //Calculate the mean value of aa.

for(var i=0;i<4;i++)
{
  mean=avg;
}

aa=aa-mean; // Subtract each element in aa by the mean value.

OutputT=aa; //Output

15
Recently I read a ebook named "Embedded Systems Development using SysML" by Doug Rosenberg, which is very helpful. Are there any similar books on Embedded Systems Development using SysML? Thank you very much!

Pages: [1] 2