|
|
Re: EOL: Access to UML Papyrus Stereotypes and their tagged value through EOL [message #1405101 is a reply to message #1404708] |
Wed, 06 August 2014 15:32 |
Paraskevi Zerva Messages: 2 Registered: August 2014 |
Junior Member |
|
|
Hi Dimitris,
Thanks for your response. Here is the details for the minimal example you have asked for.
Epsilon/Papyrus version used
version of Epsilon: Epsilon Core 1.1.0.201309101707 org.eclipse.epsilon.core.feature.feature.group Eclipse.org
version of Papyrus: Papyrus UML (Incubation) 0.10.2.v201402191554 org.eclipse.papyrus.sdk.feature.feature.group Eclipse Modeling Project
Instructions for reproducing the problem:
Open the minExampleStereotype project and run launch.xml
(I was not able to recreate properly the launch file as requested in the minimal example instructions as there
is bug keep coming up like Undefined variable, type or model: 'ProvExD)
The project is composed of the following files:
1) ProvExD.uml that contains the minimal example of uml activity diagram with 2 stereotyped model elements
2) ProvExD.profile.uml that contains our applied profile with the stereotype action provRecording
3)ProvExDtoKati.eol that contains the eol code with three cases where we try to access the model elements of ProvExD.uml that have a stereotype provRecording
and their tagged value property ''provConcepts''
In case 1 the code will print all the possible model elements along with the model elements where there has been a stereotyped applied with the name ProvRecording.
Yet this is not enough:
1) in order to understand which model elements are the ones where a stereotype ProvRecording has been applied and
2) how we can get the tagged sting value, namely ''provConcepts'', associated with each stereotyped model element.
In case 2 the code identifies the stereotyped model elements by introducing an advanced classifier property ''Stereotype'' in the ProvExD.uml file
Therefore the following code will identify and print all the model elements with a classifier property since we can not find any operation hasStereotype in EOL.
Yet what would have been helpful is to identify a model element with a classifier property of type stereotype in order to be more specific.//
In case 3 the code identifies and prints the model elements with a provConcepts property value in our model. Yet, it is not possibly to associate this property value
of provConcepts with the corresponding stereotyped model element.
Ideally I would like to have an operation or a way to identify the stereotyped model elements in my Uml model and print for them the value of the tagged property provConceptsbut. Since no hasStereotype method exists in EOL I have not managed to find a work around to do this through EOL properly.
E.g. for the minimal uml example I would like to identify the stereotyped actions
i.e., Prov Service Execution and then print their tagged value i.e.,
A:AtomicServiceExecution serviceprov:executionOf :Service,
:Service serviceprov:serviceName :ServiceName,
A:AtomicServiceExecution prov:wasAssociatedWith :Server,
:Server serviceprov:hadPort ''PortValue'' ,
:Server serviceprov:hadIPaddress ''IPaddressValue'',
:Association prov:agent :Server,
:ServiceExecution prov:qualifiedAssociation :Association,
:Association prov:hadRole :Role,
:Role serviceprov:ServiceExecutionServer,
:AtomicServiceExecution prov:used :Message,
:Message prov:hadMember :Parameter,
:Message prov:wasGeneratedBy :AtomicServiceExecution,
:ServiceExecution serviceprov:hadNFP ''NFPvalue'',
:ServiceExecution prov:startedAtTime ''startValue'',
:ServiceExecution prov:endedAtTime ''stendValue''
Similarly, I would like to do the same for other stereotyped elements like the Prov Orchestration.
Do you have any proposals for how we can identify the elements with the stereotyped values and associate these to their tagged value property?
Thanks for your time,
Paraskevi
|
|
|
|
Powered by
FUDForum. Page generated in 0.02922 seconds