ibm Rational Rhapsody 7.5 — State Event Takers

Basic code generation concepts FALSE, FALSE); its Rclass ->add(p_Class); }; void class ::removeIts rclass ( rclass * p) { NOTIFY_RELATION_ITEM_REMOVED(); rclass .remove(p); }; void class ::clearItsPing() { }; Instrumentation This section includes instrumentation macros and serialization routines used by animation. For example: void class ::serializeAttributes() const { // Serializing the attributes }; void class ::serializeRelations() const { // Serializing the relation }; IMPLEMENT_META( class , FALSE) IMPLEMENT_GET_CONCEPT( state ) State Event Takers These methods implement state, event, and transition behavior. They are synthesized based on the statechart.

If you set the CG::Attribute/Event/File/Generalization/Operation/ Relation::Generate property of the class to Cleared , they are not generated. For example: int class :: state1 Take event1 () { int res = eventNotConsumed; SETPARAMS(hungry); NOTIFY_TRANSITION_STARTED("2"); Transition code NOTIFY_TRANSITION_TERMINATED("2"); res = eventConsumed; return res; }; 940 User Guide