Wouter,
I have found that the following attribute "expression" to the GuardFacade might come handy (well, at least for me it is!). It allows you to get the expression (body and language) attached to a transition of an activity graph.
I have not added this attribute "expression" to the Guard Metaclass, as i don't have a commercial magicdraw 9.0 version (only the free demo), hence i can not save my diagram.. :-( there are more than 25 objects in this model.. :-(
So i have added the following method in the Guard Metafacade (org.andromda.metafacades.uml14.GuardMetaFacade)
public Object getExpression()
{
return metaObject.getExpression();
}
What do you think?
From: "Jean-Baptiste Guillois" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
CC: [email protected]
Subject: Re: [Andromda-devel] Re: [Andromda-user] AndroMDA - sequence diagrams and statecharts
Date: Fri, 18 Feb 2005 16:30:08 +0000
Wouter,
after looking around, i found something interesting...
if i add this following line in the andromda-metafacades.xm file
<metafacade metaobjectClass="org.omg.uml.behavioralelements.statemachines.CompositeState$Impl" metafacadeClass="org.andromda.metafacades.uml14.StateFacadeLogicImpl"/>
file from andromda-src-3.0M3\metafacades\uml\uml14\src\META-INF
i am now able to browse and perform some processing/generation on UML designed state charts!!!
so with only this change, i think that i can process my diagrams.
So, for me, it is working, i gonna use this, go further and see if i really need to write some code.
If you confirm this, do you think it is worth adding this in your product?
What do you think?
Regards
/JBG
From: "Wouter Zoons" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "Jean-Baptiste Guillois" <[EMAIL PROTECTED]>
CC: [email protected]
Subject: Re: [Andromda-devel] Re: [Andromda-user] AndroMDA - sequence diagrams and statecharts
Date: Fri, 18 Feb 2005 14:17:05 +0100 (CET)
> ok,
>
> (i didn't copy 'Andromda-devel', because i am not allowed to post to it..)
>
yes, please subscribe to it
> So, got MD9.0, opened model, looked at metafacade and metaclass. > > as for me, a metafacade is a an abstraction of an API allowing me to > access > metadata from a class. >
correct
> For instance, the facade of a classifier allows me to get the classifier
> name, type, package, associations, operations etc...
>
yes, but it's not only delegation, it shields low-level stuff and might add complicated logic such as the calculation of the fullyQualifiedName (iterate over ancestor packages ...)
> So, if i apply it to a state chart (this my primary goal, then comes
> sequence diagrams), i have to have:
> - metaclass for describing the 'entities' handled, such as state, vertex,
> join, etc...
not 'entities' but 'elements', we reserve entities to denote persisent objects
> - meta facades for accessing meta properties of these classes, of these > metaclasses.. > > hope i am right up to this point. >
yes you are
> so now, i can see in the uml project that: > - metaclasses for state charts are already defined (for instance > Transition, > StateVertex in tab "Behavioral Elements"...) > - metafacades for state charts are already defined (for instance > TransitionFacade, StateVertexFacade n same tab) > > so from a model perspective, what's missing? maybe some additional > attributes? >
that's up to you .. I don't know what you want to do .. try it out and see if you need more
> and from a metafacace implementation perspective, i can see in :
> andromda-src-3.0M3\andromda-src-3.0M3\metafacades\uml\uml14\src\java\org\andromda\metafacades\uml14
>
> some files such as:
> StateVertexFacadeLogicImpl.java
> TransitionFacadeLogicImpl.java
>
> and these files are not empty...
>
they have been generated the first time ... then I added the code, the next time his file isn't generated anymore (because it already exists)
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.com/
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-devel
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-devel
