// initialize OCL OCLinEcoreStandaloneSetup.doSetup() OCLstdlib.install() OCL.initialize(null) // initialize OCL delegation val oclDelegateURI = OCLDelegateDomain.OCL_DELEGATE_URI_PIVOT; EOperation.Internal.InvocationDelegate.Factory.Registry.INSTANCE += (oclDelegateURI -> new OCLInvocationDelegateFactory.Global()) EStructuralFeature.Internal.SettingDelegate.Factory.Registry.INSTANCE += (oclDelegateURI -> new OCLSettingDelegateFactory.Global()); EValidator.ValidationDelegate.Registry.INSTANCE += (oclDelegateURI -> new OCLValidationDelegateFactory.Global())
org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid loop iteration at line 87 in Module main for block for (controlSystem.mainComposites). Last recorded value of self was fr.unice.salty.core.model.salty.impl.ControlSystemImpl@2857a293. at main.main(ControlSystem)(main.mtl:87) at main.main(ControlSystem)(main.mtl:83)
org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid loop iteration at line 18 in Module main for block for (system.allTestedNames). Last recorded value of self was me.impl.SystemImpl@28d320d6. Problem found while generating the file '/Users/krikava/Development/workspaces/salty-fresh/ocltest3/output/system.txt'. at main.main(System)(main.mtl:18) at main.main(System)(main.mtl:7) at main.main(System)(main.mtl:4)
class Component { property parent : System[1] { derived readonly transient volatile } { derivation: oclContainer().oclAsType(System); } }
[component.parent /]
(parent: org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1df6bc1a (eClass: org.eclipse.emf.ecore.impl.EClassImpl@31b75e54 (name: OclInvalid_Class) (instanceClassName: null) (abstract: false, interface: false)))
org.eclipse.ocl.ecore.delegate.OCLDelegateException: illegal operation signature: (eContainer())
oclAsType(ecore::EObject).eContainer()
import ecore : '/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#/';