User Manual, Developers Guide and API Documentation

Component.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_COMPONENT_HPP
00030 #define WIMEMAC_COMPONENT_HPP
00031 
00032 #include <DLL/Layer2.hpp>
00033 
00034 #include <WNS/pyconfig/View.hpp>
00035 
00036 #include <vector>
00037 
00038 namespace wimemac { namespace convergence {
00039     class IPhyServices;
00040 } // convergence
00041 } // wimemac
00042 
00043 namespace wimemac {
00044 
00045     class Component :
00046         public dll::Layer2
00047     {
00048     public:
00052         Component(
00053             wns::node::Interface* _node,
00054             const wns::pyconfig::View& _config);
00055 
00059         virtual
00060         ~Component();
00061 
00065         virtual void
00066         onNodeCreated();
00067 
00071         virtual void
00072         onWorldCreated();
00073 
00077         virtual void
00078         onShutdown();
00080     protected:
00084         virtual void
00085         doStartup();
00086 
00087     private:
00091         Component(const Component&);
00092 
00096         Component& operator=(const Component&);
00097 
00101         wimemac::convergence::IPhyServices* lowerConvergence;
00102     }; // Component
00103 
00104 } // wimemac
00105 
00106 
00107 #endif // NOT defined WIMEMAC_COMPONENT_HPP
00108 
00109 

Generated on Sun May 27 03:31:49 2012 for openWNS by  doxygen 1.5.5