[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.uml2] Re: Extending UML2
|
hi Tas,
I read below about the extension of UML2, I just wanted to ask you a few
questions
I have been trying to extend UML2 and I am able to extend my metamodel using
UML2. I can generate the code and everything works fine. I am still not able
to use all the UML2 capabilities for example, I have a my meta class called
FocusArea which extends UMLPackage , when i create the instance i use
factory.createFocusArea();
and then add it to the resource. I make FocusArea behave like a UMLPackage
using
a 1...many ChildFocusArea reference of type FocusArea, so when i generate
the code i could use FocusArea.createChildFocusArea(), I could also use
UMLPackage.createPackage()...and add a child FocusArea that way but when i
do that it is persisted in the resource as UMLPackage. I will have mixed
content in this case, I have a UI which uses the aboveAPI , what i am really
looking for is , when i call factory.getFocusArea() it should return me the
instance
of a UML2Package , this way adding it to resource will mean i have pure UML2
content. Do you understand wha i am trying to say..? Please also look
at my post on "UML persistance" on the 14/07/06 in the group, i would really
appreciate if i could get some pointers as i am stuck here.
Saurabh
"Tas Frangoullides" <tfrangoullides@xxxxxxxxxxxxxx> wrote in message
news:e1ijvb$bl7$1@xxxxxxxxxxxxxxxxxxxx
> Manar,
>
> I have just started writing a tutorial for this but in the meantime here
> are the basic steps. This should work with latest version of uml2 project.
> If you have any problems let me know.
>
> 1) Create a new Project
>
> 2) Create a new UML model in the project
>
> 3) Use "Load Resource..." menu to load UML metamodel -
> pathmap://UML_METAMODELS/UML.metamodel.uml. You sould now be able to
> browse the metamodel if this loads properly.
>
> 4) Create your new metaclass in your model, forming relationships to the
> ones in the uml metamodel. E.g MyClass with a generalization to uml:Class,
> or MyActor with a generalization to uml:Actor. You will probably want to
> add new properties and associations to your metaclasses.
>
> 5) Use Model->Convert to Metamodel on your model and save it.
>
> You then need to generate an implementation API for your metamodel
>
> 6) Use new EMF Model wizard to create a genmodel using your new uml model
> as input.
>
> 7) You should be able to use this genmodel to generate model,.edit and
> .editor plugins. If you deploy these to an eclipse platform (along with
> uml2 and emf) you should be able to graphically create instance of your
> model. You will find that your api and based on and is compatible with the
> UML api.
>
> Sorry that some of the steps are vague but I can expand any that you have
> problems with.
>
> Hope that helps,
>
> Tas.
>
> "Manar" <manar.elkady@xxxxxxxxx> wrote in message
> news:e1iend$flj$1@xxxxxxxxxxxxxxxxxxxx
>> Hello,
>>
>> Could you tell me how to Extend the UML2 Metamodel? And how can I
>> see/access the UML2 metamodel?
>>
>> Manar
>>
>>
>>
>> Tas Frangoullides wrote:
>>> Hi,
>>>
>>> For extending UML2 to include the concepts I know of two choices.
>>>
>>> 1) Create a UML2 Profile which allows you to stereotype existing UML2
>>> elements to represent the AO concepts. See tutorial (as Pranas
>>> suggested)
>>>
>>> 2) Extend the UML2 Metamodel by creating a custom metamodel based on it.
>>> You
>>> can generate implementation code and editors for your extended
>>> metamodel.
>>>
>>> Also, in case its of interest, there is a book titled "Aspect-Oriented
>>> Analysis and Design" by "Siobhan Clarke" and "Elise Baniassad" which
>>> specifies an extension to UML to support AO. Hope that helps,
>>> Tas.
>>>
>>> A. Farquea wrote:
>>>
>>>
>>>>I want to be able to extend UML2 to include Aspect Oriented Programming
>>>>concepts, such as crosscutting interfaces and packages into it so that i
>>>>can then create models using these new elements available to me in the
>>>>UML2 menus.
>>>>
>>>>Firstly is it possible to extend UML2 in this way from finding
>>>>appropirate
>>>>extension points, and would these be in an EMF plugin that UML depends
>>>>on
>>>>rather than an individual UML2 plugin does anyone know?
>>>>
>>>>So basically when creating a model in UML2 i want to have elements such
>>>>as
>>>>"crosscutting interface" available in the menus so that i can then
>>>>export
>>>>the model to GMF(EMF = GEF) so that it can be created and viewed in a
>>>>graphical editor?
>>>>
>>>>so can anyone help me with my first steps to extending UML2 in such a
>>>>way
>>>>please?
>>>
>