« 回到University of Vienna - OMILAB

Include class derived from __D_swimlane__

組合檢視 平均檢視 瀏覽樹狀資料
相關串連 [ 前一個 | 下一個 ]
toggle
Include class derived from __D_swimlane__
community class documentation
答覆
2014/3/27 下午 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__
答覆
2013/7/9 下午 12:52 作為回覆給匿名
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__
答覆
2013/10/31 下午 1:08 作為回覆給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__
答覆
2013/11/27 上午 9:42 作為回覆給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