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.


Messages - apabil

Pages: [1]
1
General Board / Re: Modelling overriding interface operations
« on: March 12, 2012, 07:47:05 pm »
I found a simple solution.

By creating a subclass which implements the interface, it is possible to override the onClick-operation directly in the subclass. The method body can than be described by a activity diagram related to the onClick-operation in the subclass. In the activity diagram in the main class it is just necessary to create a instance of the subclass.
 
Best regards,

2
General Board / Modelling overriding interface operations
« on: March 06, 2012, 02:40:49 am »
Hello,

I am trying to model the overriding of an interface operation. The goal is to generate Java-Code out of the model. The operation-code should look like this:

Code: [Select]
button.addClickHandler(new ClickHandler(){
 public void onClick(ClickEvent event){
  do_something();
 }
});

I can't find out how to model the override of the onClick-operation in my activity diagram.
Is this possible with EA?

Thanks in advance,

3
General Board / C(OO) code gen. behavioral diagrams on EA Ultimate
« on: December 08, 2011, 11:42:55 pm »
Hi,

I'm trying the code generation from behavioral diagrams features of EA Ultimate. In particular, C(OO) code.

I'm able to successfully generate code from "CallOperation" actions but I'm not getting any code generated from actions like: "WriteVariable"; "ValueSpecification" and "WriteStructuralFeature" to name a few.

Particularly with "WriteStructuralFeature", I go to "Advance" | "Set Structural Feature" and select the Class attribute I'm interesting in. Then I go to "Properties" | "Advance" and entered the desired value in the "value" field. I've also have the Activity within the Class I'm generating and specified to an existing Class operation.

Here you can find an example:

https://docs.google.com/open?id=0BzfslFYR0mjEMjIyMzQwNDAtYzU3Ny00NWYwLWJhNzQtMjRmYWE5MDYxNDJm

So I'm expecting something like:

Code: [Select]
Boolean Message_setFormat(Message* this, char* format_p)
{
   this->format = format_p;
}

But instead I'm getting:

Code: [Select]
Boolean Message_setFormat(Message* this, char* format_p)
{
   return  NULL;
}

I wonder if I'm missing something or it is that code generation from such actions are simply not yet implemented or supported?

Thanks in advance for your comments.

apabil

4
Hi,

In code generation from behavioral models on EA Ultimate, I'm not able to get anything generated from the "Loop Node" Structured Activity.

Assuming I'm expecting something like:

for( j=start ; j<end ; j++)

is the following pin mapping correct?

Decider = end

Loop Variable Input = start

Loop Variable = j

Body Output = [empty]

Result [empty]


Thanks in advance for your comments

5
Automation Interface, Add-Ins and Tools / importing stdio.h
« on: December 07, 2011, 01:33:10 am »

Pages: [1]