Home » Modeling » Papyrus » Activity Diagram bugs/questions
|
Re: Activity Diagram bugs/questions [message #1715440 is a reply to message #1715252] |
Mon, 23 November 2015 15:13 |
Klaas Gadeyne Messages: 165 Registered: July 2009 |
Senior Member |
|
|
Hi Stephen,
First: If you're trying/insisting to use the (in-progress) SysML 1.4 editors, I suggest to use the nightly build update site. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=472801
Stephen Blackwell wrote on Fri, 20 November 2015 10:03Validation of my model reported an error with an Object Flow on an Activity diagram. When I selected the object flow and look at the SysML properties, I noticed that the properties are all duplicated.
That is the bug.
I can confirm this. More specifically: this only happens when a SysML specific stereotype is set. Could you file a bug report for this?
Quote:
Now the questions.
The validation error is "The required feature 'sysml:activities:Rate:rate' of Continuous must be set. I have a stereotype of <<Continuous>> so that should set the rate, no? When I select the ellipsis button next to the Rate property it brings up an empty dialog window and there does not seem to be a way to add anything.
This is an interesting one. For Rate, the spec says
From Spec
When the «rate» stereotype is applied to an activity edge, it specifies the expected value of the number of objects and values that traverse the edge per time interval, that is, the expected value rate at which they leave the source node and arrive at the target node. ...
The «rate» stereotype has a rate property of type InstanceSpecification. The values of this property must be instances of classifiers stereotyped by «valueType» or «distributionDefinition», see Clause 8, "Blocks." In particular, the denominator for units used in the rate property must be time units.
From Spec
Continuous rate is a special case of rate of flow (see Rate) where the increment of time between items approaches zero.
However, AFAICT the spec does not mention to what value the rate attribute needs to be set in this case. IMO this is a problem with the SysML specification (which I cannot find back directly in the OMG issue list). So my guess is that this should be reported to the OMG SysML issue tracker www.omg.org/report_issue.htm
Quote:
The next question is straight forward. How do I get the icon for a CallBehaviorAction as shown in para 11.3.1.2 of the SysML 1.4 spec. to display? I can't find any property or display filter to do it.
I cannot find back this in para 11.3.1.2 of the SysML 1.4 spec?
Quote:
Last question is: How can I hide the name of the InitialNode or ActivityFinalNode without deleting the name? This question also applies to StateMachine diagrams.
ActivityDiagram InitialNode > Label
{
visible : false;
}
(Disclaimer: it's not that I'm just smart, I just got this answer from peaking in the css files that come with papyrus code)
HTH,
Klaas
Quote:
This with SysML 1.4 v0.7.0.201509161524.
Thanks,
Steve
|
|
|
Re: Activity Diagram bugs/questions [message #1716153 is a reply to message #1715440] |
Tue, 01 December 2015 18:15 |
Stephen Blackwell Messages: 138 Registered: March 2014 |
Senior Member |
|
|
Quote:First: If you're trying/insisting Smile to use the (in-progress) SysML 1.4 editors, I suggest to use the nightly build update site. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=472801
I do insist
OK, done, but I got some dialog about migrating profiles. I chose the SysML option. I hope that's right.
Quote:
Stephen Blackwell wrote on Fri, 20 November 2015 10:03
Validation of my model reported an error with an Object Flow on an Activity diagram. When I selected the object flow and look at the SysML properties, I noticed that the properties are all duplicated.
That is the bug.
I can confirm this. More specifically: this only happens when a SysML specific stereotype is set. Could you file a bug report for this?
Done. https://bugs.eclipse.org/bugs/show_bug.cgi?id=483401
Quote:Quote:
Now the questions.
The validation error is "The required feature 'sysml:activities:Rate:rate' of Continuous must be set. I have a stereotype of <<Continuous>> so that should set the rate, no? When I select the ellipsis button next to the Rate property it brings up an empty dialog window and there does not seem to be a way to add anything.
This is an interesting one. For Rate, the spec says
From Spec
When the «rate» stereotype is applied to an activity edge, it specifies the expected value of the number of objects and values that traverse the edge per time interval, that is, the expected value rate at which they leave the source node and arrive at the target node. ...
The «rate» stereotype has a rate property of type InstanceSpecification. The values of this property must be instances of classifiers stereotyped by «valueType» or «distributionDefinition», see Clause 8, "Blocks." In particular, the denominator for units used in the rate property must be time units.
From Spec
Continuous rate is a special case of rate of flow (see Rate) where the increment of time between items approaches zero.
However, AFAICT the spec does not mention to what value the rate attribute needs to be set in this case. IMO this is a problem with the SysML specification (which I cannot find back directly in the OMG issue list). So my guess is that this should be reported to the OMG SysML issue tracker www.omg.org/report_issue.htm
OK, I'll look into doing that.
Quote:Quote:
The next question is straight forward. How do I get the icon for a CallBehaviorAction as shown in para 11.3.1.2 of the SysML 1.4 spec. to display? I can't find any property or display filter to do it.
I cannot find back this in para 11.3.1.2 of the SysML 1.4 spec?
Sorry, I was using an old version of the spec. The correct para number is 11.3.1.2, Figures 11.2 and 11.3.
Quote:Quote:
Last question is: How can I hide the name of the InitialNode or ActivityFinalNode without deleting the name? This question also applies to StateMachine diagrams.
ActivityDiagram InitialNode > Label
{
visible : false;
}
(Disclaimer: it's not that I'm just smart, I just got this answer from peaking in the css files that come with papyrus code)
OK, Thanks. That worked for the InitialNode and the ForkNode but not for the FinalNode.
Steve
|
|
| | |
Re: Activity Diagram bugs/questions [message #1716371 is a reply to message #1716153] |
Thu, 03 December 2015 10:03 |
Klaas Gadeyne Messages: 165 Registered: July 2009 |
Senior Member |
|
|
Stephen Blackwell wrote on Tue, 01 December 2015 13:15
Quote:Quote:
Now the questions.
The validation error is "The required feature 'sysml:activities:Rate:rate' of Continuous must be set. I have a stereotype of <<Continuous>> so that should set the rate, no? When I select the ellipsis button next to the Rate property it brings up an empty dialog window and there does not seem to be a way to add anything.
This is an interesting one. For Rate, the spec says
From Spec
When the «rate» stereotype is applied to an activity edge, it specifies the expected value of the number of objects and values that traverse the edge per time interval, that is, the expected value rate at which they leave the source node and arrive at the target node. ...
The «rate» stereotype has a rate property of type InstanceSpecification. The values of this property must be instances of classifiers stereotyped by «valueType» or «distributionDefinition», see Clause 8, "Blocks." In particular, the denominator for units used in the rate property must be time units.
From Spec
Continuous rate is a special case of rate of flow (see Rate) where the increment of time between items approaches zero.
However, AFAICT the spec does not mention to what value the rate attribute needs to be set in this case. IMO this is a problem with the SysML specification (which I cannot find back directly in the OMG issue list). So my guess is that this should be reported to the OMG SysML issue tracker www.omg.org/report_issue.htm
OK, I'll look into doing that.
Great. Keep us informed!
Quote:
Quote:Quote:
The next question is straight forward. How do I get the icon for a CallBehaviorAction as shown in para 11.3.1.2 of the SysML 1.4 spec. to display? I can't find any property or display filter to do it.
I cannot find back this in para 11.3.1.2 of the SysML 1.4 spec?
Sorry, I was using an old version of the spec. The correct para number is 11.3.1.2, Figures 11.2 and 11.3.
The rake symbol should normally be displayed by default in papyrus for the callbehaviouractions. It is in my models at least. Could you describe in more detail what you do?
|
|
| | | | |
Goto Forum:
Current Time: Fri Mar 29 08:12:44 GMT 2024
Powered by FUDForum. Page generated in 0.03879 seconds
|