« Tilbake til University of Vienna - OMILAB

Include class derived from __D_swimlane__

Kombinasjonsvisning Flat visning Trådet visning
Tråder [ Forrige | Neste ]
toggle
Include class derived from __D_swimlane__
community class documentation
Svar
27.03.14 12:13
I have created a new class, derived from the abstract class __D_swimlane__ and included it in a model type, but when I open the ADOxx Modelling Toolkit, the class is not available for modelling.
What should I configure for being able to use this class?

RE: Include class derived from __D_swimlane__
Svar
09.07.13 12:52 Postet som et svar til melding #{1} av {2}
Please note that all classes derived from the abstract class __D_swimlane__ must be included in a MODE. Although all other classes and relation classes are displayed even if no MODE is defined, you must define at least one mode if you want to use a class derived from the __D_swimlane__.
The piece of code below exemplifies the definition of a standard mode for the model type "Sample" (class Swimplane_Vertical has been derived from class __D_swimlane__):

1MODELTYPE "Sample" from:none plural:"Samples" pos:1
2INCL "A"
3INCL "B"
4INCL "C"
5INCL "Swimlane_Vertical"
6INCL "any2any"
7
8MODE "Standard" from: all

RE: Include class derived from __D_swimlane__
Svar
31.10.13 13:08 Postet som et svar til melding #{1} av {2}
Thank you for your reply, Sabin, it really helped. I have further question: the swimlane class is displayed in the "Modelling" toolbar of the modelling tool as a separate group (see picture). How can I do the same to group other elements? Is it possible to give a (viewable) name to such a "group"?
Vedlegg

Vedlegg: Grouping.png (40,0k)

RE: Include class derived from __D_swimlane__
Svar
27.11.13 09:42 Postet som et svar til melding #{1} av {2}
The current version of ADOxx does not allow customizable grouping of objects in the Modelling toolbar. There is the predefined grouping of modelling items into classes, relation classes and classes derived from the abstract class __D_swimlane__ .

An alternative would be defining subgroups of classes of your modeltype usind the element MODE in the library attribute Modi. A description of how to use the MODE element can be found in the following thread:  http://www.adoxx.org/live/faq/-/message_boards/view_message/20030#_19_message_20017