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