|
|
Re: [QVTo] when condition in abstract mapping [message #795302 is a reply to message #794816] |
Fri, 10 February 2012 10:00 |
Bart Theelen Messages: 20 Registered: February 2012 |
Junior Member |
|
|
Thanks for the pointer to the specification, but unfortunately it does not seem to explain the sketched case. I did find something about using xmap instead of map when calling the mapping functions, but that makes no difference.
I would however like to understand why my intuition is wrong. I think that I basically expected that the following piece of code:
abstract mapping InModel::InType::Transformation() : OutModel::OutType
when { Condition1 } {
DoSomethingUsefull
}
mapping InModel::InInheritedType::TransformationX() : OutModel::OutInheritedType
inherits InModel::InType::Transformation()
when { Condition2 } {
DoSomeExtraThings
}
is semantically equivalent to this piece of code:
mapping InModel::InInheritedType::TransformationY() : OutModel::OutInheritedType
when { Condition1 and Condition2 } {
DoSomethingUsefull;
DoSomeExtraThings
}
But apparently I am wrong or I used the wrong constructs? Any ideas?
[Updated on: Fri, 10 February 2012 11:45] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.04148 seconds