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

Pages: [1] 2
1
yes. ok lets say the condition is, when the signal is bigger than a treshhold. i have to model the threshold as an element also.
in this case how to create a linik (relationship) between this elements and the condition (Guard)?

2
In a state machine i'm using to describe the transition some signal names to describe the guard.
The signals are already in the model defined with an element of type "Signal".
Is there any way to create using SysML or UML a relationship between?
Because in my model the signal are defined, but they doesn't have a relationship link

3
ok. I add an element (Action Call Behaviout) from the SysML Toolbox and the name was on the top, then I change the stereotype of the element and the name go to the middle. Here is the Shape Script (I put some ... to make shorteer the text:

Code: [Select]
shape main
{
noshadow = "true";
if (HasTag("ElementType","Mechanical"))
{
setfillcolor(210,108,30);
}
...
else if (HasTag("ElementType","Mechatronical"))
{
setfillcolor(255,228,188);
}
DrawNativeShape();
}

decoration Type
{
orientation = "SW";
if (HasTag("showElementType","true"))
{
if (HasTag("isSignal","true"))
{
println("Sig");
}
...
else if (HasTag("ElementType","Mechatronical"))
{
println("Mea");
}
}
}

decoration SIL
{
orientation = "NW";
if (HasTag("showSafetyIntegrity","true"))
{
if (HasTag("SafetyIntegrity","None"))
{
// hide label
HideLabel("");
}
else
{
// Not applicable
if (HasTag("SafetyIntegrity","Not applicable"))
{
setfillcolor(255, 255, 255);
print("Na");
RoundRect(0,0,100,100,4,4);
}
....
}
}
}

shape RelatedElement
{
if(HasProperty("Connector.Type", "Realisation"))
{
if(HasProperty("Element.IsTarget"))
{
SetCompartmentName("ExternalRequirements");
AppendCompartmentText("Req #Element.Name#");
}
}
if(HasProperty("Connector.Type", "Dependency"))
{
if(HasProperty("Element.IsSource"))
{
SetCompartmentName("DerivedRequirements");
AppendCompartmentText("Req #Element.Name#");
}
}
if(HasProperty("Connector.Type", "Abstraction"))
{
if(HasProperty("Element.IsTarget"))
{
SetCompartmentName("AllocatedTo");
AppendCompartmentText("#Element.Name#");
}
}
}

I don't have any control for the text

4
I though also this point, but both element have the same stereotype -> same shape script

do you know how to control this in the shape script?

5
why the name of the action is in the middle of the element and not in the top?
I use the same stereotype twice, but the position of the name is ddifferent. how can I control this?



7
Hi, when I insert an ActivitParameter in my model it will created with the attribute (parameter) Type: Integer.

I would like to create en extended stereotype of the ActivityParameter with the default type: none

I don't find this option in the manual. it is possible to make this change? with the profile helper?

8
Thank you! the order of the stereotypes didn't work, but the z-order yes! :-)

9
I created my own technology extending UML and SysML and I have defined various Diagrams. This is working fine.

When I use the tecnology during modelling and i want to add a diagram, i get the list of possible diagrams. The list of diagrams is sorted randomly, how can i do in my own technology to get the desired order for the diagrams?

10
Hi guys, how can i configure my own technology to be allocated together with the others system engineering technologies?

Toolbox -> Change Perspective -> SystemEngineering -> xx

https://github.com/RealPecho/MDG/blob/main/toolbox.png

11
Thank you Guys! Now it is clear for me.
I tested again the old technology and it is not taking over the tagged values. I don't know where i saw this effect  :-\

12
thanks eve, but it is not clear for me.
I defined both stereotypes as Abstract but with the spezialization is not clear what do you mean. I defined an enumeration and i used the same enumeration in both stereotypes. in Profile Helper, under "Tagged Values" i added in both the same enumaration.

another picutre of the properties of the instanz:

https://github.com/RealPecho/MDG/blob/main/properties_instanz.png

the instanz is relationed with the parental, but the attributes are not taken over.

Maybe this is not right, but it was working in the old technology and we need unfortunately in this way to avoid a mismatch

13
I did in this way, but it is not  really the same.

If I add a diagram to the model, i have to go in this way througt the SysML perspective and choose for example InternalBlock. But we change the names of the diagrams to get more specific description.

But I think, there is no another way to do this

15
I think he means like in SysML MDG

Pages: [1] 2