Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mdt-papyrus.dev] Suite question sur OCL...

Hi all,

 

First of all, thanks to Christain, Johan, and ED for their responses on my previous question. Finally, it was ok. The pb is indeed that I did not know really suddenly it was ok…. :-(

I did a modification on my profile introducing an intermediate stereotype called <<Generic>> which extends Operation, and now the <<ASIL>> stereotype is a generalization of <<Generic>>.

 

Following constraint allow me to check that an Operation on which <<NFP>> is applied must also have the applied <<Generic>> stereotype:

self.extension_NFP->notEmpty() implies self.extension_Generic->notEmpty()

 

I would like also to check that an Operation on which <<NFP>> is applied must also have the applied stereotype <<ASIL>>.

I tried to write the following OCL statement (using the Xtext console directly on my model): self.extension_NFP->notEmpty() implies self.extension_ASIL->notEmpty()

But in that case .extension_ASIL is not resolved. Why?

I tried the following alternative:

self.extension_NFP->notEmpty() implies self.extension_Generic.ocIsKindOf()->notEmpty() but it does not work.

AM I wrong?

 

Thanks,

Best,

Sébastien

 

 

 

 

 

cid:image001.png@01D1C880.5C951BE0

 

 

Sébastien Gérard

Head of the LISE labs

CEA Research Director

Papyrus project Leader (www.eclipse.org/papyrus)

cid:image002.jpg@01D1C880.5C951BE0

Commissariat à l’énergie atomique et aux énergies alternatives

Institut List | CEA Saclay Nano-INNOV | Bât. 862- PC174

F-91191 Gif-sur-Yvette Cedex

M. +33 6 88 20 00 47

T. +33 1 69 08 58 24

sebastien.gerard@xxxxxx  www-list.cea.fr

 

 

 

icone_youtube

  cid:image004.png@01D1C880.5C951BE0  cid:image005.jpg@01D1C880.5C951BE0   

 

 

Attachment: ValidModelExample.zip
Description: ValidModelExample.zip


Back to the top