« Πίσω στην University of Vienna - OMILAB

Include class derived from __D_swimlane__

Αποψη συνδυασμού Επίπεδη άποψη Αποψη δέντρων
toggle
Include class derived from __D_swimlane__
community class documentation
Απάντηση
27/3/2014 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__
Απάντηση
9/7/2013 12:52 μμ as a reply to Ανώνυμος.
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__
Απάντηση
31/10/2013 1:08 μμ as a reply to Sabin Popescu.
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"?
Σύνδεση

Επισυνάψεις: Grouping.png (40,0k)

RE: Include class derived from __D_swimlane__
Απάντηση
27/11/2013 9:42 πμ as a reply to Natalia Sudakova.
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