User Manual, Developers Guide and API Documentation

QueueManager.hpp

Go to the documentation of this file.
00001 /*******************************************************************************
00002  * This file is part of openWNS (open Wireless Network Simulator)
00003  * _____________________________________________________________________________
00004  *
00005  * Copyright (C) 2004-2009
00006  * Chair of Communication Networks (ComNets)
00007  * Kopernikusstr. 5, D-52074 Aachen, Germany
00008  * phone: ++49-241-80-27910,
00009  * fax: ++49-241-80-22242
00010  * email: info@openwns.org
00011  * www: http://www.openwns.org
00012  * _____________________________________________________________________________
00013  *
00014  * openWNS is free software; you can redistribute it and/or modify it under the
00015  * terms of the GNU Lesser General Public License version 2 as published by the
00016  * Free Software Foundation;
00017  *
00018  * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY
00019  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
00020  * A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00021  * details.
00022  *
00023  * You should have received a copy of the GNU Lesser General Public License
00024  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00025  *
00026  ******************************************************************************/
00027 
00028 #ifndef WIMAC_SCHEDULER_QUEUEMANAGER_HPP
00029 #define WIMAC_SCHEDULER_QUEUEMANAGER_HPP
00030 
00031 #include <WNS/scheduler/queue/IQueueManager.hpp>
00032 #include <WIMAC/services/ConnectionManager.hpp>
00033 #include <WIMAC/ConnectionIdentifier.hpp>
00034 #include <WIMAC/frame/DataCollector.hpp>
00035 #include <WNS/logger/Logger.hpp>
00036 
00037 namespace wimac { namespace service {
00038 
00039             typedef std::map<wns::scheduler::ConnectionID, wns::scheduler::queue::QueueInterface*> CIDtoQueueMap;
00040             typedef std::map<wns::scheduler::ConnectionID, wimac::frame::DataCollector*> CIDtoDCMap;
00041 
00046             class QueueManager:
00047                 public wns::scheduler::queue::IQueueManager
00048             {
00049             public:
00050                 QueueManager(wns::ldk::ManagementServiceRegistry* msr, const wns::pyconfig::View& config);
00051 
00052                 virtual ~QueueManager();
00053 
00057                 virtual wns::scheduler::queue::QueueContainer
00058                 getAllQueues();
00059 
00063                 virtual wns::scheduler::queue::QueueInterface*
00064                 getQueue(wns::scheduler::ConnectionID cid);
00065 
00069                 virtual void
00070                 startCollection(wns::scheduler::ConnectionID cid);
00071 
00072                 virtual void
00073                 onMSRCreated();
00074 
00075             private:
00076                 wimac::ConnectionIdentifier::StationID
00077                 getStationID(wns::scheduler::ConnectionID cid);
00078 
00079                 wns::scheduler::queue::QueueInterface*
00080                 getQueue(wimac::ConnectionIdentifier::StationID peerStationId, wns::scheduler::ConnectionID cid);
00081 
00082                 std::string connectionManagerServiceName_;
00083                 wimac::service::ConnectionManager* connectionManager_;
00084                 CIDtoQueueMap cache_;
00085                 CIDtoDCMap dcCache_;
00086                 wns::logger::Logger logger_;
00087             };
00088         }} // namespace wimac::service
00089 #endif // WIMAC_SCHEDULER_QUEUEMANAGER_HPP
00090 
00091 

Generated on Fri May 25 03:32:15 2012 for openWNS by  doxygen 1.5.5