User Manual, Developers Guide and API Documentation

ReadyForTransmission.hpp

Go to the documentation of this file.
00001 /******************************************************************************
00002  * WNS (Wireless Network Simulator)                                           *
00003  * __________________________________________________________________________ *
00004  *                                                                            *
00005  * Copyright (C) 2004-2006                                                    *
00006  * Chair of Communication Networks (ComNets)                                  *
00007  * Kopernikusstr. 16, D-52074 Aachen, Germany                                 *
00008  * phone: ++49-241-80-27910 (phone), fax: ++49-241-80-22242                   *
00009  * email: wns@comnets.rwth-aachen.de                                          *
00010  * www: http://wns.comnets.rwth-aachen.de                                     *
00011  ******************************************************************************/
00012 
00013 #ifndef GLUE_ARQFSM_STOPANDWAIT_READYFORTRANSMISSION_HPP
00014 #define GLUE_ARQFSM_STOPANDWAIT_READYFORTRANSMISSION_HPP
00015 
00016 #include <GLUE/arqfsm/stopandwait/BaseState.hpp>
00017 
00018 namespace glue { namespace arqfsm { namespace stopandwait {
00019 
00020     class ReadyForTransmission :
00021         public BaseState
00022     {
00023     public :
00024         ReadyForTransmission(FSMFU::BaseFSM* t) :
00025             BaseState(t, "glue_arqfsm_stopandwait_ReadyForTransmission")
00026         {}
00027 
00028         virtual void
00029         onInitState();
00030 
00031     private:
00032         virtual StateInterface*
00033         onSendData(const wns::ldk::CompoundPtr& compound);
00034 
00035         virtual StateInterface*
00036         onACK(int sequenceNumber);
00037 
00038         virtual StateInterface*
00039         onWakeup();
00040 
00041         virtual void
00042         onIsAccepting(bool& accepting) const;
00043 
00044         virtual StateInterface*
00045         onTimeout();
00046     };
00047 
00048 } // stopandwait
00049 } // arqfsm
00050 } // glue
00051 
00052 #endif // GLUE_ARQFSM_STOPANDWAIT_READYFORTRANSMISSION_HPP
00053 
00054 

Generated on Fri May 25 03:31:59 2012 for openWNS by  doxygen 1.5.5