User Manual, Developers Guide and API Documentation

IDRPSchedulerServices.hpp

Go to the documentation of this file.
00001 /******************************************************************************
00002  * WiMeMac                                                                    *
00003  * This file is part of openWNS (open Wireless Network Simulator)
00004  * _____________________________________________________________________________
00005  *
00006  * Copyright (C) 2004-2011
00007  * Chair of Communication Networks (ComNets)
00008  * Kopernikusstr. 5, D-52074 Aachen, Germany
00009  * phone: ++49-241-80-27910,
00010  * fax: ++49-241-80-22242
00011  * email: info@openwns.org
00012  * www: http://www.openwns.org
00013  * _____________________________________________________________________________
00014  *
00015  * openWNS is free software; you can redistribute it and/or modify it under the
00016  * terms of the GNU Lesser General Public License version 2 as published by the
00017  * Free Software Foundation;
00018  *
00019  * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY
00020  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
00021  * A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00022  * details.
00023  *
00024  * You should have received a copy of the GNU Lesser General Public License
00025  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00026  *
00027  ******************************************************************************/
00028 
00029 #ifndef WIMEMAC_DRP_IDRPSCHEDULERSERVICES_HPP
00030 #define WIMEMAC_DRP_IDRPSCHEDULERSERVICES_HPP
00031 
00032 #include <WNS/ldk/Command.hpp>
00033 #include <WNS/ldk/Compound.hpp>
00034 #include <WNS/service/dll/Address.hpp>
00035 #include <WNS/simulator/Time.hpp>
00036 
00037 namespace wimemac { namespace drp {
00038 
00039     typedef std::vector<bool> Vector;
00040   
00042     class IDRPSchedulerServices
00043     {
00044     public:
00045         virtual ~IDRPSchedulerServices(){};
00046 
00050         virtual bool startPCAtransmission() = 0;
00051         virtual void stopPCAtransmission() = 0;
00052         
00053         virtual void txOPCloseIn(wns::simulator::Time duration) = 0;
00054         
00055         virtual wns::service::dll::UnicastAddress getCurrentTransmissionTarget() = 0;
00056         
00058         virtual bool UpdateMapWithPeerAvailabilityMap(wns::service::dll::UnicastAddress rx , Vector& DRPMap) = 0;
00059         
00061         virtual bool adjustMCSdown(wns::service::dll::UnicastAddress rx) = 0;
00062         
00064         virtual void UpdateDRPMap(Vector DRPMap) = 0;
00065         
00066         virtual void onBPStart(wns::simulator::Time BPduration) = 0;
00067         
00068         virtual void Acknowledgment(wns::service::dll::UnicastAddress tx) = 0;
00069         
00071         virtual int getNumOfRetransmissions(const wns::ldk::CompoundPtr& compound) = 0;
00072                       
00073     };
00074    
00075 
00076 } // drp
00077 } // wimemac
00078 
00079 #endif // not defined WIMEMAC_DRP_IDRPSCHEDULERSERVICES_HPP
00080 
00081 
00082 

Generated on Thu May 24 03:32:13 2012 for openWNS by  doxygen 1.5.5