Last change
on this file since 51 was
22,
checked in by rings, 15 years ago
|
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Rev | Line | |
---|
[22] | 1 | /*! file EquipmentAccessPort.h |
---|
| 2 | \brief This file provides support of TTCN-3 EquipmentAccessPort. |
---|
| 3 | */ |
---|
| 4 | |
---|
| 5 | #ifndef EquipmentAccessPort_h |
---|
| 6 | #define EquipmentAccessPort_h |
---|
| 7 | |
---|
| 8 | #include <t3devlib/t3devlib.h> |
---|
| 9 | |
---|
| 10 | /*! Class EquipmentAccessPort |
---|
| 11 | * \brief This class implements the functionalities TTCN-3 EquipmentAccessPort management. |
---|
| 12 | */ |
---|
| 13 | class EquipmentAccessPort : public t3devlib::Port |
---|
| 14 | { |
---|
| 15 | public: |
---|
| 16 | //! Specialized ctor. |
---|
| 17 | /*! Specialized ctor. |
---|
| 18 | * @param id Port identifier. |
---|
| 19 | */ |
---|
| 20 | EquipmentAccessPort (t3devlib::PortId& id); |
---|
| 21 | //! Default dtor. |
---|
| 22 | /*! Default dtor. |
---|
| 23 | */ |
---|
| 24 | ~EquipmentAccessPort(); |
---|
| 25 | |
---|
| 26 | public: |
---|
| 27 | //! ProcessTriggerCommandsComplete. |
---|
| 28 | /*! Callback method called when UpperTester::InvokeProcessTriggerCommand() method is achieved. |
---|
| 29 | * @param to: reference to the component. |
---|
| 30 | */ |
---|
| 31 | void ProcessTriggerCommandsComplete(const t3devlib::ComponentId &to); |
---|
| 32 | |
---|
| 33 | protected: |
---|
| 34 | //! Map the port. |
---|
| 35 | bool Map (const t3devlib::PortId& port_id); |
---|
| 36 | //! Unmap the port. |
---|
| 37 | bool Unmap (const t3devlib::PortId& port_id); |
---|
| 38 | //! Send |
---|
| 39 | /*! Send a message to the port |
---|
| 40 | * @param from: identify the component |
---|
| 41 | * @param msg: encoded TTCN-3 message |
---|
| 42 | * @return true on success, false otherwise |
---|
| 43 | */ |
---|
| 44 | bool Send (const t3devlib::ComponentId& from, const t3devlib::Bitstring& msg); |
---|
| 45 | |
---|
| 46 | }; |
---|
| 47 | |
---|
| 48 | #endif // EquipmentAccessPort_h |
---|
Note: See
TracBrowser
for help on using the repository browser.