Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » UML2 state machines : Transition transformation
UML2 state machines : Transition transformation [message #103691] Fri, 17 April 2009 08:41
courbis is currently offline courbisFriend
Messages: 1
Registered: July 2009
Junior Member
Hi,

I am working on transforming state machines defined by UML2.ecore
metamodel.I have no problem to manipulate states and transitions. The
problem occurs in the following helper testing if a transition outgoing
from a state is alone:

helper context UML!Transition def: isAlone() : Boolean =
let srce : self.source in srce.outgoing->size = 1 ;

or
helper context UML!Transition def: isAlone() : Boolean =
self.source.outgoing->size = 1 ;

I tried with a cast : let srce : self.source in
srce.outgoing->asSet()->size()=1

Result is always false.

Thanks for your help!
Anne-Lise
Previous Topic:[ATL]
Next Topic:Headless configurations
Goto Forum:
  


Current Time: Thu Apr 25 03:58:35 GMT 2024

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

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

Back to the top