This service is archived, please use www.eclipse.org/forums


Home » Archived Projects » Kitalpha » Eclass CAPELLA not defined as extensible
Eclass CAPELLA not defined as extensible [message #806] Tue, 26 April 2016 04:56 Go to next message
weed.ou.laposte.net is currently offline  weed.ou.laposte.net
Messages: 8
Registered: April 2016
Junior Member
Hello,

I have tried to generate my first point of View (QualityAssessment) with an Architecture Framework based on Capella.

(Physical Component extension)

Unfortunately, the following error appears during the viewpoint generation :

The EClass PhysicalComponent[pa, http://www.polarsys.org/capella/core/pa/0.8.0/semantic] is not defined as extensible.
Extension defined by QualityAssessment in QualityAssessment viewpoint specification.

Have you ever got this kind of error ?
Regards
Weed
Re: Eclass CAPELLA not defined as extensible [message #807 is a reply to message #806] Tue, 26 April 2016 07:33 Go to previous messageGo to next message
boubekeur.zendagui@thales is currently offline  boubekeur.zendagui@thales
Messages: 54
Registered: April 2015
Member
Hello,

This error is shown when one defines an eMDE extension (by using extends in a class description) to a no extensible EClass. In that case, the viewpoint generation displays this error.

PhysicalComponent is an extensible EClass, so, this error should not appear.

Could you please show us the content of the *.data.vptext and *.spec.vptext files?

Regards,
Boubekeur.
Re: Eclass CAPELLA not defined as extensible [message #809 is a reply to message #807] Wed, 27 April 2016 02:52 Go to previous messageGo to next message
felix.dorner.gmail.com is currently offline  felix.dorner.gmail.com
Messages: 117
Registered: November 2015
Senior Member
Hello,

you are trying to extend a class of the Simplified Capella Metamodel. This is not possible. You can see this from the namespace uri in the error: Anything that ends with /semantic is from the simplified metamodel. Boubekeur, maybe there is some magic in kitalpha that gets confused if the capella xml pivot addon is installed?
Re: Eclass CAPELLA not defined as extensible [message #816 is a reply to message #809] Thu, 28 April 2016 02:03 Go to previous messageGo to next message
weed.ou.laposte.net is currently offline  weed.ou.laposte.net
Messages: 8
Registered: April 2016
Junior Member
Hello Everyone,

First of all, thanks a lot for your feedback.

There is a tutorial movie on kitalpha site that explain how to design a point of view with capella studio.

I have used this sample.

Please find :

*.data.vptext
/**
* Copyright (c) PolarSys, 2016. All rights reserved.
*
* Viewpoint QualityAssessment
* @author: KE004561
* @date: 26/04/16
*
*/
Data QualityAssessment.data {

Class QualityAssessment {
icon:"ontology.png"
extends pa.PhysicalComponent,la.LogicalComponent

Attributes:
maturityLevel type ecore.EString
confidenceLevel enum EconfidenceLevel
assessed type ecore.EBoolean

Associations:
basedOn refers [0,*] QualityAssessment
context refers [0,*] external capellacore.NamedElement
measures contains [0,*] QualityMeasure
}
Class QualityMeasure {
icon:"ontology.png"
Attributes:
criterion type ecore.EString
measureValue type ecore.EInt
}


Enumeration EconfidenceLevel {
"Not Assessed",Low,Medium,High
}
}

and *.spec.vptext files
Viewpoint QualityAssessment {

name: "QualityAssessment"
Data QualityAssessment.data
UI QualityAssessment.ui
Diagrams QualityAssessment.diagram
Services QualityAssessment.services
Build QualityAssessment.build
Configuration QualityAssessment.conf
}

Regards,

weedou

Re: Eclass CAPELLA not defined as extensible [message #820 is a reply to message #807] Thu, 28 April 2016 03:50 Go to previous messageGo to next message
weed.ou.laposte.net is currently offline  weed.ou.laposte.net
Messages: 8
Registered: April 2016
Junior Member
Hello,

I have followed the video tutorial on Kitalpha site : How to developp a view point under Capella Studio (Quality Assessment)

Thanks
Weedou

Please find the following files :

spec.vptext

Viewpoint QualityAssessment {

name: "QualityAssessment"
Data QualityAssessment.data
UI QualityAssessment.ui
Diagrams QualityAssessment.diagram
Services QualityAssessment.services
Build QualityAssessment.build
Configuration QualityAssessment.conf
}

data.vptext

/**
* Copyright (c) PolarSys, 2016. All rights reserved.
*
* Viewpoint QualityAssessment
* @author: KE004561
* @date: 26/04/16
*
*/
Data QualityAssessment.data {

Class QualityAssessment {
icon:"ontology.png"
extends pa.PhysicalComponent,la.LogicalComponent

Attributes:
maturityLevel type ecore.EString
confidenceLevel enum EconfidenceLevel
assessed type ecore.EBoolean

Associations:
basedOn refers [0,*] QualityAssessment
context refers [0,*] external capellacore.NamedElement
measures contains [0,*] QualityMeasure
}
Class QualityMeasure {
icon:"ontology.png"
Attributes:
criterion type ecore.EString
measureValue type ecore.EInt
}


Enumeration EconfidenceLevel {
"Not Assessed",Low,Medium,High
}

}
Re: Eclass CAPELLA not defined as extensible [message #825 is a reply to message #820] Thu, 28 April 2016 07:02 Go to previous messageGo to next message
Matthieu Durot is currently offline  Matthieu Durot
Messages: 35
Registered: December 2015
Member
I think your problem is that your QualityAssessment class inherits from 2 classes(pa.PhysicalComponent and la.LogicalComponent).

In Java you can't inherit from more than one class.

So I assume that it's the same with kitalpha.

[Updated on: Thu, 28 April 2016 08:28]

Report message to a moderator

Re: Eclass CAPELLA not defined as extensible [message #837 is a reply to message #825] Mon, 09 May 2016 08:48 Go to previous messageGo to next message
weed.ou.laposte.net is currently offline  weed.ou.laposte.net
Messages: 8
Registered: April 2016
Junior Member
Hello Mathieu,
Hello Mathieu

Thanks for your feedback.

Unfortunately, The problem remains the same with only one classe inheritance (pa.PhysicalComponent or la.LogicalComponent).

That means that we can build new point of views only for EMF meta model extension at this time ?

Regards

Weedou.




Re: Eclass CAPELLA not defined as extensible [message #838 is a reply to message #837] Tue, 10 May 2016 03:53 Go to previous messageGo to next message
felix.dorner.gmail.com is currently offline  felix.dorner.gmail.com
Messages: 117
Registered: November 2015
Senior Member
Weedou, do you have the "XML Pivot" addon installed in Capella Studio? If it is installed, can you please try to uninstall it and see if the generation works afterwards?
Re: Eclass CAPELLA not defined as extensible [message #847 is a reply to message #838] Tue, 17 May 2016 04:33 Go to previous messageGo to next message
weed.ou.laposte.net is currently offline  weed.ou.laposte.net
Messages: 8
Registered: April 2016
Junior Member
Hello Felix,

Thanks for your help.

Unfortunately, The problem remains the same with / without XML Pivot (under Capella Studio)

Regards

Weedou
Re: Eclass CAPELLA not defined as extensible [message #849 is a reply to message #837] Tue, 17 May 2016 07:37 Go to previous messageGo to next message
Matthieu Durot is currently offline  Matthieu Durot
Messages: 35
Registered: December 2015
Member
weed.ou.laposte.net wrote on Mon, 09 May 2016 08:48
Unfortunately, The problem remains the same with only one classe inheritance (pa.PhysicalComponent or la.LogicalComponent).

That means that we can build new point of views only for EMF meta model extension at this time ?


That's a good question. If a Capella project developer could answer it, it would be very interesting.

I'll ask it on a new topic.

Matthieu
Re: Eclass CAPELLA not defined as extensible [message #851 is a reply to message #849] Tue, 17 May 2016 08:07 Go to previous messageGo to next message
Christophe Gatti is currently offline  Christophe Gatti
Messages: 147
Registered: September 2014
Location: Paris, France
Senior Member

Hi,

As mentioned by Boubekeur and Felix, you cannot extend classes that are part of the simplified Metamodel.
The simplified metamodel is generated when you use the XML Pivot functionality.

I think there is a problem when you used auto-completion in your spec for PhysicalComponent, check the import please to see if you can import the PhysicalComponent class from Capella metamodel and not from the simplified one.

Hope it helps.

Regards,

Christophe.
Re: Eclass CAPELLA not defined as extensible [message #853 is a reply to message #851] Wed, 18 May 2016 03:13 Go to previous messageGo to next message
felix.dorner.gmail.com is currently offline  felix.dorner.gmail.com
Messages: 117
Registered: November 2015
Senior Member
Weedou, can you please open the vpdesc file, expand the QualityAssessment class and post a screenshot of the editor here?
Re: Eclass CAPELLA not defined as extensible [message #858 is a reply to message #853] Sun, 22 May 2016 21:22 Go to previous messageGo to next message
weed.ou.laposte.net is currently offline  weed.ou.laposte.net
Messages: 8
Registered: April 2016
Junior Member
Hello Felix,

Please find the File Attachment.

Regards

index.php/fa/225/0/
Weedou.
  • Attachment: kitalpha.bmp
    (Size: 750.72KB, Downloaded 477 times)
Re: Eclass CAPELLA not defined as extensible [message #861 is a reply to message #806] Mon, 30 May 2016 03:53 Go to previous messageGo to next message
felix.dorner.gmail.com is currently offline  felix.dorner.gmail.com
Messages: 117
Registered: November 2015
Senior Member
Weedou, can you please expand the QualityAssessment and the QualityMeasure class nodes in the tree? When you expand these nodes, some new elements named 'something.ecore' should show up in the bottom of the tree, like in the example here:
index.php/fa/226/0/
Can you re-do the screenshot that shows these .ecore nodes?
  • Attachment: vpdesc.png
    (Size: 7.15KB, Downloaded 496 times)
Re: Eclass CAPELLA not defined as extensible [message #864 is a reply to message #861] Tue, 31 May 2016 03:24 Go to previous messageGo to next message
weed.ou.laposte.net is currently offline  weed.ou.laposte.net
Messages: 8
Registered: April 2016
Junior Member
Hello Felix,

Thanks for your support.

Please find the screenshots.

Weedou

index.php/fa/230/0/
index.php/fa/231/0/
index.php/fa/232/0/
Re: Eclass CAPELLA not defined as extensible [message #865 is a reply to message #864] Wed, 01 June 2016 05:17 Go to previous messageGo to next message
felix.dorner.gmail.com is currently offline  felix.dorner.gmail.com
Messages: 117
Registered: November 2015
Senior Member
Is the Ecore.ecore the only one? If you extend a specific Capella class, then there should be more .ecore files in the editor, like here:
index.php/fa/233/0/
(The properties view shows the properties for my custom class, which in your case would be QualityAssesment)
PS. You don't have to expand the .ecore for posting the screenshot. All I need to see is the path of the .ecore file.
  • Attachment: vpdesc.png
    (Size: 26.04KB, Downloaded 423 times)
icon7.gif  Re: Eclass CAPELLA not defined as extensible [message #906 is a reply to message #865] Wed, 15 June 2016 10:25 Go to previous message
weed.ou.laposte.net is currently offline  weed.ou.laposte.net
Messages: 8
Registered: April 2016
Junior Member
Hello EveryBody,

The same code generate perfectly the point of view under Capella studio 1.0.1 !!, but don't know why it doesnt work under 1.0.0.

Sucessfully Used for Test in 'new configuration mode'

Thanks for your support (Felix,Mathieu,Boubekeur,Christophe,..)

Regards
Weedou.
Previous Topic: [CoEvolution/Transposer] eReference traces management
Next Topic: Import problem [Beginner]
Goto Forum:
  


Current Time: Fri Feb 21 03:33:46 EST 2020

Total time taken to generate the page: 0.02076 seconds