| |
| #include "Top.hh" |
| |
| #include "ComputerSystem.hh" |
| #include "umlrtcapsuleclass.hh" |
| #include "umlrtcapsulepart.hh" |
| #include "umlrtslot.hh" |
| #include <cstddef> |
| #include "umlrtcapsulerole.hh" |
| #include "umlrtframeservice.hh" |
| class UMLRTRtsInterface; |
| struct UMLRTCommsPort; |
| |
| Capsule_Top::Capsule_Top( const UMLRTCapsuleClass * cd, UMLRTSlot * st, const UMLRTCommsPort * * border, const UMLRTCommsPort * * internal, bool isStat ) |
| : UMLRTCapsule( NULL, cd, st, border, internal, isStat ) |
| , computerSystem( &slot->parts[part_computerSystem] ) |
| { |
| } |
| |
| |
| |
| void Capsule_Top::bindPort( bool isBorder, int portId, int index ) |
| { |
| } |
| |
| void Capsule_Top::unbindPort( bool isBorder, int portId, int index ) |
| { |
| } |
| |
| void Capsule_Top::initialize( const UMLRTMessage & msg ) |
| { |
| } |
| |
| void Capsule_Top::inject( const UMLRTMessage & msg ) |
| { |
| } |
| |
| |
| static const UMLRTCapsuleRole roles[] = |
| { |
| { |
| "computerSystem", |
| &ComputerSystem, |
| 1, |
| 1, |
| false, |
| false |
| } |
| }; |
| |
| static void instantiate_Top( const UMLRTRtsInterface * rts, UMLRTSlot * slot, const UMLRTCommsPort * * borderPorts ) |
| { |
| ComputerSystem.instantiate( NULL, slot->parts[Capsule_Top::part_computerSystem].slots[0], UMLRTFrameService::createBorderPorts( slot->parts[Capsule_Top::part_computerSystem].slots[0], ComputerSystem.numPortRolesBorder ) ); |
| slot->capsule = new Capsule_Top( &Top, slot, borderPorts, NULL, false ); |
| } |
| |
| const UMLRTCapsuleClass Top = |
| { |
| "Top", |
| NULL, |
| instantiate_Top, |
| 1, |
| roles, |
| 0, |
| NULL, |
| 0, |
| NULL |
| }; |
| |