User Manual, Developers Guide and API Documentation

InSignals.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_INSIGNALS_HPP
00014 #define GLUE_ARQFSM_INSIGNALS_HPP
00015 
00016 #include <WNS/ldk/Compound.hpp>
00017 
00018 namespace glue { namespace arqfsm {
00019 
00020     template <typename STATEINTERFACE>
00021     class InSignals
00022     {
00023     public:
00024         virtual STATEINTERFACE*
00025         onSendData(const wns::ldk::CompoundPtr& compound) = 0;
00026 
00027         virtual STATEINTERFACE*
00028         onI(const wns::ldk::CompoundPtr& compound, int sequenceNumber) = 0;
00029 
00030         virtual STATEINTERFACE*
00031         onACK(int sequenceNumber) = 0;
00032 
00033         virtual STATEINTERFACE*
00034         onWakeup() = 0;
00035 
00036         virtual void
00037         onIsAccepting(bool& accepting) const = 0;
00038 
00039     protected:
00040         virtual
00041         ~InSignals()
00042         {} // ~InSignals
00043     };
00044 
00045 } // arqfsm
00046 } // glue
00047 
00048 #endif // GLUE_ARQFSM_INSIGNALS_HPP
00049 
00050 

Generated on Thu May 24 03:31:57 2012 for openWNS by  doxygen 1.5.5