[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2m-atl-dev] [ATL] - How to access properties values of a stereotype?

Hello all,


i’m having trouble in accessing the value of a property of a stereotype. I was thinking to use the operation getValue(Stereotype stereotype, java.lang.String propertyName) but I get this exception:
org.eclipse.m2m.atl.engine.emfvm.VMException: Operation not found: IN!ComponentA.getValue(org.eclipse.m2m.atl.engine.emfvm.lib.OclUndefined,java.lang.String)
This is the rule that causes the exception:
rule StatefulHardware2DIMComponent {
                 sfh : UML2!Component (sfh.getAppliedStereotypes()-> exists(e| e.name = 'StatefulHardware'))
                 c : DependabilityintermediateModel!Component (
                          Name <- sfh.name,
                          intermediateModel <- UML2!Model.allInstances()->first(),
                          Faults <- ft,
                          Errors <- e
                 fo : DependabilityintermediateModel!Exponential(
                          Rate <- sfh.getValue(sfh.getAppliedStereotype('CHESS-ML::StatefulHardware'), 'faultOcc')
Since i’m pretty new to ATL i was wondering if anyone could help me. Any comment would be appreciated. Thanks


The contents of this email and any transmitted files are confidential and intended solely for the use of the individual or entity to whom they are addressed. We hereby exclude any warranty and any liability as to the quality or accuracy of the contents of this email and any attached transmitted files. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this email is strictly prohibited. If you have received this email in error please contact the sender and delete the material from any computer.