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

Pages: [1]
1
General Board / Re: Spreykt du franglais?
« on: April 13, 2010, 05:18:36 pm »
I like your french ... LOL

Not that bad anyway ;) Even pretty good :D

2
Ok, thanks, it's finally generating source code in my states :D

I have the impression that I still have a lot of questions on this software (this is the first time in my life I'm using a soft in order to generate code...)

I was looking into the links you gave me, and I have a question... Why when you're creating your method attached to your state you need to put the "generated code" (because this is not generated at all, I'm not even getting the variables of my states, but this is not the problem ^^) into the area Behavior and not initial code? What is the purpose of the "initial code" in this case?

And I was wondering, how the state machine is able to move from Entry to Do or Exit, because I can't see the source code linked to this ... (actually I can see the enumeration, but not the changes :S )

I have the impression that for the moment we don't know the value of the "CommandType" and so we can't figure what is the comportement into the state diagram :(

Sorry for all those questions, but I really would like to understad how everything works in EA. ;)

3
I have found this exact page yesterday so I have been able to get code for my transition, but I still get the main problem.

How to put behavior in my states? I have searched on the help, on the forum, on the EAexemple and so far I have found nothing :( . This is blocking me since days, so if you can just explain it to me.

4
I'm using the trial edition of EA (Ultimate choosen each time, don't worry ;) ) and I'm able to generate the source code from my state machine in C, this is not the problem anymore ...

Now my problem is that I don't know how to put some behavior in my states. I would like, as an example, to put some conditions in order to know which transition the state needs to choose, or just the current behavior of the state (modify variable, print something ...). But I'm searching for this fonctionality since hours, and I'm unable to find anything :(

I would guess this is in the scenario that I have to put my comportement, but how to fill it? Is it some place else?

Also what is the interest of the "Files" option in each state?

5
Sorry for the "flood" ...

I have also tried for hours to add source code to any of my state in the state machine but I can't! I think I'm not in searching in the right field or something like that, can you indicate me how to do that?

If you can also do the same with the transitions, it would be very nice.

Thanks a lot ...

6
Ok, I have talked with my project manager and he still wants to use EA in C with code generation (maybe just for the moment, we'll see ...)

Anyway, I would like to ask, why I will have to modify the code template as you said before? (It seems a litle bit complicated, no?)

7
I will talk with my project manager this afternoon and we'll see!

Thanks a lot anyway :)

8
I'm not sure to understand very weel what you're saying... (I'm french ^^)

what's the "OO support"?

And if I activate it I have to customize? How so?

And "take inspiration firm (I guess from ^^) its code template"? I Really don't see what you're talking about :S

9
Hi everyone,

I have to use (for the first time in my life) entreprise architect in order to generate source code with "only" a state diagram. I have to generate the code in C (no object please, this is not needed ;) )but I'm having trouble doing it on EA.

I have created a new project, with one package and one class diagram in it. In this class diagram I have created one class (with few attributs and one method). I have attached the state machine diagram to my class (using right click->add->statemachine) and i have put some states in it!

After that if I asked to generate the code in C, ths generation is done but i'm not getting the source code for my diagram. But if I'm asking for the same code in C++ (or C#, java...) I'm able to see my diagram.

Can you explain to me how to get my source code for the same diagram in C. I must have miss-done something, but I can't figure what :(

In the same time, if you can explain to me (or provide me a link/project example) about how to add action to states and transitions, it would be very nice.

Thanks a lot

Heero

Pages: [1]