| |
| #ifndef A_HH |
| #define A_HH |
| |
| #include "P.hh" |
| #include "umlrtcapsule.hh" |
| #include "umlrtcapsuleclass.hh" |
| #include "umlrtmessage.hh" |
| struct UMLRTCommsPort; |
| struct UMLRTSlot; |
| |
| class Capsule_A : public UMLRTCapsule |
| { |
| public: |
| Capsule_A( const UMLRTCapsuleClass * cd, UMLRTSlot * st, const UMLRTCommsPort * * border, const UMLRTCommsPort * * internal, bool isStat ); |
| virtual void inject( const UMLRTMessage & message ); |
| virtual void initialize( const UMLRTMessage & message ); |
| const char * getCurrentStateString() const; |
| private: |
| enum State |
| { |
| State1, |
| SPECIAL_INTERNAL_STATE_TOP, |
| SPECIAL_INTERNAL_STATE_UNVISITED |
| }; |
| const char * stateNames[3]; |
| State currentState; |
| void update_state( State newState ); |
| void entryaction_____State1( const UMLRTMessage * msg ); |
| void transitionaction_____TransitionAction0( const UMLRTMessage * msg ); |
| void actionchain_____TransitionAction0( const UMLRTMessage * msg ); |
| State state_____State1( const UMLRTMessage * msg ); |
| protected: |
| P::Base p; |
| public: |
| enum BorderPortId |
| { |
| borderport_p |
| }; |
| enum PartId |
| { |
| }; |
| enum PortId |
| { |
| port_p |
| }; |
| virtual void bindPort( bool isBorder, int portId, int index ); |
| virtual void unbindPort( bool isBorder, int portId, int index ); |
| }; |
| extern const UMLRTCapsuleClass A; |
| |
| #endif |
| |