| /******************************************************************************* |
| * Copyright (c) 2015 Zeligsoft (2009) Limited and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| *******************************************************************************/ |
| |
| #ifndef TOP_HH |
| #define TOP_HH |
| |
| #include "umlrtcapsule.hh" |
| #include "umlrtcapsuleclass.hh" |
| #include "umlrtmessage.hh" |
| #include <cstddef> |
| struct UMLRTCapsulePart; |
| struct UMLRTCommsPort; |
| struct UMLRTSlot; |
| class UMLRTRtsInterface; |
| class UMLRTInMessage; |
| |
| class Capsule_Top : public UMLRTCapsule |
| { |
| public: |
| Capsule_Top( const UMLRTRtsInterface * rtsif, const UMLRTCapsuleClass * capsuleClass, UMLRTSlot * slot, const UMLRTCommsPort * * border, const UMLRTCommsPort * internal, bool isStat ); |
| enum PartId |
| { |
| part_computer |
| }; |
| protected: |
| const UMLRTCapsulePart * computer() const; |
| public: |
| virtual void initialize( const UMLRTInMessage & msg ); |
| virtual void inject( const UMLRTInMessage & msg ); |
| }; |
| extern const UMLRTCapsuleClass Top; |
| |
| #endif |
| |