使用者定義的屬性及作業

在本節中,會定義所有作業及屬性資料成員。本節中的程式碼是直接從類別作業及屬性轉換的。您可以藉由將作業或屬性新增至模型,或是從模型中移除作業或屬性,來加以控制。

例如:

////    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

回饋