User Manual, Developers Guide and API Documentation

RLCCommand.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-2007
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 LTE_RLC_RLCCOMMAND_HPP
00029 #define LTE_RLC_RLCCOMMAND_HPP
00030 
00031 #include <LTE/helper/QoSClasses.hpp>
00032 
00033 #include <WNS/ldk/Command.hpp>
00034 #include <WNS/service/dll/Address.hpp>
00035 #include <WNS/service/dll/FlowID.hpp>
00036 #include <WNS/Enum.hpp>
00037 
00038 namespace lte { namespace rlc {
00039 
00040     ENUM_BEGIN(PacketDirection);
00041     ENUM(UNKNOWN, 0);
00042     ENUM(UPLINK, 1);
00043     ENUM(DOWNLINK, 2);
00044     ENUM_END();
00045 
00047     class RLCCommand :
00048        public wns::ldk::Command
00049     {
00050     public:
00051       RLCCommand()
00052       {
00053     local.direction = lte::rlc::PacketDirection::UNKNOWN();
00054     peer.destination = wns::service::dll::UnicastAddress();
00055     peer.flowID = -1;
00056     peer.qosClass = lte::helper::QoSClasses::UNDEFINED();
00057       }
00058 
00059       struct
00060       {
00064     wns::service::dll::FlowID flowID;
00065       } rang;
00066 
00067       struct
00068       {
00073     int direction;
00074       } local;
00075 
00076 
00077       struct
00078       {
00082     wns::service::dll::UnicastAddress source;
00083 
00088     wns::service::dll::UnicastAddress destination; // E2E address
00089 
00090     wns::service::dll::FlowID flowID;
00091 
00092     wns::service::qos::QoSClass qosClass; // only here to support probe context
00093       } peer;
00094 
00095       struct
00096       {
00097       } magic;
00098 
00099     };
00100 
00101 } // rlc
00102 } // lte
00103 
00104 #endif // LTE_RLC_RLCCOMMAND_HPP

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