« Back

Include class derived from __D_swimlane__

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Include class derived from __D_swimlane__
community class documentation
Answer
3/27/14 12:13 PM
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__
Answer
7/9/13 12:52 PM as a reply to Anonymous.
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__
Answer
10/31/13 1:08 PM 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"?
Attachment

Attachments: Grouping.png (40.0k)

RE: Include class derived from __D_swimlane__
Answer
11/27/13 9:42 AM 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