Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] EFloat attribute assignment
[ATL] EFloat attribute assignment [message #85024] Tue, 24 June 2008 10:41
Ivano is currently offline IvanoFriend
Messages: 35
Registered: July 2009
Hi all,
I am developing a very simple ATL transformation from Eclipse UML2 to
one of my DSL metamodels.

This is a simplified version of my rule:

rule SAcomponent_Clock{
s : UML2!Component
t : saveccm!Clock (
jitter <- 4.5,

The problem resides in the binding because the type of the jitter
attribute is EFloat and ATL works only with Double precision float
numbers, so I get the following Exception:

GRAVE: ****** BEGIN Stack Trace
GRAVE: message: cannot set feature saveccm!Clock.jitter to value 5.5
GRAVE: exception:
GRAVE: The value of type 'class java.lang.Double' must be of type 'class
java.lang.ClassCastException: The value of type 'class java.lang.Double'
must be of type 'class java.lang.Float'

Does anyone know how to set an EFloat attribute to ATL?

It's overstated that I cannot modify the target metamodel changing the
type of the jitter attribute to EDouble!

Previous Topic:[ATL] Running ATL from the command line
Next Topic:[ATL] ATL for Eclipse 3.2.2
Goto Forum:

Current Time: Sun Sep 20 02:27:53 GMT 2020

Powered by FUDForum. Page generated in 0.01607 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top