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

Pages: [1]
1
General Board / Re: rotating shapes in port (shape script question
« on: September 03, 2012, 04:59:39 pm »
I don't have access to the SysML ports it seems. However, I figured out a simple solution in case anyone is intersted. I have 4 cases based on where the port is located (the edge). Here is the code, and accompanying picture.

Code: [Select]
shape main{      
      setpencolor(0,0,0);
      rectangle(0,100,100,0);      
      setfillcolor(0,0,0);

      if(hasProperty("parentedge", "right"))
      {
            polygon(50,50,3,35,0);
            return;
      }
      else if(hasProperty("parentedge", "left"))
      {
            polygon(50,50,3,35,180);
            return;
            }
      else if(hasProperty("parentedge", "bottom"))
      {
            polygon(50,50,3,35,270);
            return;
      }

      else if(hasProperty("parentedge", "top"))
      {
            polygon(50,50,3,35,90);
            return;
      }
}

2
General Board / rotating shapes in port (shape script question)
« on: August 31, 2012, 10:18:17 pm »
Does anyone know how to make EA Architect rotate an arrow for example to point in the right direction? Here is my scenario: I am creating an AUTOSAR port which has an arrow decorating the port (points outward for output, inwards for input). However, When I move my port around the class, the orientation of the arrow remains fixed at 0 degrees. Is there a way to have the arrow rotate as needed depending on where the user places the port?

3
General Board / Provided Interface versus Interface?
« on: August 31, 2012, 06:20:16 pm »
Are Interface and ProvidedInterface different concepts? I noticed that when inserting an embedded element in a port (adding a provided/required interface) I get a selection menu to select an existing interface. However, it seems that I can create another interface with the same name, and there are no conflicts.

Also, when editing the shapes in shape editor, if I change the appearance of the interface (box notation) the provided interface notation does not change. EA Architect treats these two distinctly, can someone clarify?

4
General Board / How do I insert an ObjectNode between 2 actions?
« on: September 04, 2012, 07:59:35 pm »
I am trying to insert an ObjectNode (actually, a stereotyped version) between two Actions. however, I cannot insert the ObjectNode, it is treated as a pin, is there a way to switch between the graphical representations as shown in the UML standard page 432 of the UML standard (ver. 2.4)?

5
General Board / Cannot find CallBehaviorAction metaclass
« on: September 04, 2012, 05:31:26 pm »
I have to implement the following in a UML profile, but I cannot insert the CallBehaviorAction metaclass directly. There is only Action. Is there a way to directly extend CallBehaviorAction?

"...<<runnableEntity>> stereotype which extends the CallBehaviorAction  and AcceptEventAction metaclasses. A runnable is represented by a UML 2.0 AcceptEventAction with a control flow to a CallBehaviorAction..."

6
General Board / embedded elements in ports and typing a port
« on: September 01, 2012, 12:43:36 am »
If I see an interface in the embedded elements list dialog box of a port, does that mean I have "typed" the port with an interface in UML terms? I am trying to fulfill a constraint that states:

The port MUST be typed by a UML2 Interface...

Pages: [1]