![]() |
User Manual, Developers Guide and API Documentation |
![]() |
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_BASESTATE_HPP 00014 #define GLUE_ARQFSM_STOPANDWAIT_BASESTATE_HPP 00015 00016 #include <GLUE/arqfsm/stopandwait/FSMFU.hpp> 00017 #include <GLUE/arqfsm/ARQBaseState.hpp> 00018 00019 #include <WNS/ldk/Compound.hpp> 00020 00021 namespace glue { namespace arqfsm { namespace stopandwait { 00022 00023 class BaseState : 00024 public ARQBaseState<FSMFU, StopAndWaitCommand> 00025 { 00026 public: 00027 00028 BaseState(FSMFU::BaseFSM* t, const std::string& stateName) : 00029 ARQBaseState<FSMFU, StopAndWaitCommand>(t, stateName) 00030 {} // BaseState 00031 00032 virtual StateInterface* 00033 onTimeout() = 0; 00034 00035 protected: 00036 virtual 00037 ~BaseState() 00038 {} // ~BaseState 00039 00040 private: 00041 virtual StateInterface* 00042 onI(const wns::ldk::CompoundPtr& compound, int sequenceNumber); 00043 }; 00044 00045 } // stopandwait 00046 } // arqfsm 00047 } // glue 00048 00049 #endif // GLUE_ARQFSM_STOPANDWAIT_BASESTATE_HPP 00050 00051
1.5.5