ユーザー定義属性と操作

このセクションでは、すべての操作と属性データ・メンバーを定義します。このセクション内のコードは、クラスの操作と属性が直接翻訳されたものです。このコードは、操作と属性をモデルに追加したり、モデルから削除したりして制御できます。

例:

////    User explicit entries     ////
public :
   //## operation op1()  // Annotation for the operation
   void op1();           // Definition of an operation
protected :
   // Attributes:
   //## attribute attr1  // Annotation for an attribute
   attrType1 attr1;      // Definition of an attribute
////    User implicit entries     ////
public :
   // Constructors and destructors:
   class(OMThread* thread = theMainThread);
   virtual ~class();    // Generated destructor

フィードバック