#include <rfid_tag_app.hpp>
Inheritance diagram for RfidTagApp:

Public Types | |
|
typedef boost::shared_ptr< RfidTagApp > | RfidTagAppPtr |
| Smart pointer that clients should use. | |
Public Member Functions | |
| virtual RfidTagAppPtr | thisRfidTagApp () |
Gives this pointer as a RfidTagApp object. | |
| virtual ApplicationLayerPtr | thisApplicationLayer () |
Gives this pointer as a ApplicationLayer object. | |
| virtual SimulationEndListenerPtr | thisSimulationEndListener () |
Gives this pointer as a SimulationEndListener object. | |
| void | startHandler () |
| Function to execute when the application is started. | |
| void | stopHandler () |
| Function to execute when the application is stopped. | |
| bool | getReplyToReads () const |
| Determine whether or not the state of this tag allows it to reply to read requests. | |
| void | setReplyToReads (bool replyToReads) |
| Set whether or not the state of this tag allows it to reply to read requests. | |
| virtual void | simulationEndHandler () |
| The function called when the simulation ends. | |
| ostream & | print (ostream &s) const |
| Return the stream representation of the object. | |
Static Public Member Functions | |
| static RfidTagAppPtr | create (NodePtr node) |
A factory method to ensure that all objects are created via new since we are using smart pointers. | |
Protected Member Functions | |
| RfidTagApp (NodePtr node) | |
| A constructor. | |
| bool | handleRecvdPacket (PacketPtr packet, t_uint sendingLayerIdx) |
| Handle a received packet. | |
Definition at line 16 of file rfid_tag_app.hpp.
| bool RfidTagApp::getReplyToReads | ( | ) | const |
Determine whether or not the state of this tag allows it to reply to read requests.
Definition at line 31 of file rfid_tag_app.cpp.
| bool RfidTagApp::handleRecvdPacket | ( | PacketPtr | packet, | |
| t_uint | sendingLayerIdx | |||
| ) | [protected, virtual] |
Handle a received packet.
| packet | a pointer to the received packet. | |
| sendingLayerIdx | the index of the layer that sent the packet. |
Implements ApplicationLayer.
Definition at line 41 of file rfid_tag_app.cpp.
References Packet::DataTypes_Application, ApplicationLayer::m_isRunning, RfidReaderAppData::Types_Read, and RfidReaderAppData::Types_Reset.
| void RfidTagApp::setReplyToReads | ( | bool | replyToReads | ) |
Set whether or not the state of this tag allows it to reply to read requests.
| replyToReads | whether the tag can reply to read requests. |
Definition at line 36 of file rfid_tag_app.cpp.
| ApplicationLayerPtr RfidTagApp::thisApplicationLayer | ( | ) | [inline, virtual] |
Gives this pointer as a ApplicationLayer object.
This is used to deal with shared_ptr's, this, and inheritance.
this object. Implements ApplicationLayer.
Definition at line 139 of file rfid_tag_app.hpp.
| RfidTagAppPtr RfidTagApp::thisRfidTagApp | ( | ) | [inline, virtual] |
Gives this pointer as a RfidTagApp object.
This is used to deal with shared_ptr's, this, and inheritance.
this object. Definition at line 133 of file rfid_tag_app.hpp.
| SimulationEndListenerPtr RfidTagApp::thisSimulationEndListener | ( | ) | [inline, virtual] |
Gives this pointer as a SimulationEndListener object.
This is used to deal with shared_ptr's, this, and inheritance.
this object. Implements CommunicationLayer.
Definition at line 145 of file rfid_tag_app.hpp.
1.4.7