User Manual, Developers Guide and API Documentation

IPathSelection.hpp

Go to the documentation of this file.
00001 /******************************************************************************
00002  * WiFiMac                                                                    *
00003  * This file is part of openWNS (open Wireless Network Simulator)
00004  * _____________________________________________________________________________
00005  *
00006  * Copyright (C) 2004-2007
00007  * Chair of Communication Networks (ComNets)
00008  * Kopernikusstr. 16, 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 WIFIMAC_PATHSELECTION_PATHSELECTIONINTERFACE_HPP
00030 #define WIFIMAC_PATHSELECTION_PATHSELECTIONINTERFACE_HPP
00031 
00032 #include <WIFIMAC/pathselection/Metric.hpp>
00033 #include <WNS/service/dll/Address.hpp>
00034 
00035 #include <DLL/UpperConvergence.hpp>
00036 
00037 
00038 namespace wifimac { namespace pathselection {
00039 
00043     class IPathSelection
00044     {
00045     public:
00046         virtual
00047         ~IPathSelection()
00048             {};
00052         virtual wns::service::dll::UnicastAddress
00053         getNextHop(const wns::service::dll::UnicastAddress current,
00054                    const wns::service::dll::UnicastAddress finalDestination) = 0;
00055 
00059         virtual bool
00060         isMeshPoint(const wns::service::dll::UnicastAddress address) const = 0;
00061 
00065         virtual bool
00066         isPortal(const wns::service::dll::UnicastAddress address) const = 0;
00067 
00072         virtual wns::service::dll::UnicastAddress
00073         getProxyFor(const wns::service::dll::UnicastAddress address) = 0;
00074 
00080         virtual wns::service::dll::UnicastAddress
00081         getPortalFor(const wns::service::dll::UnicastAddress address) = 0;
00082 
00086         virtual void
00087         registerProxy(const wns::service::dll::UnicastAddress server,
00088                       const wns::service::dll::UnicastAddress client) = 0;
00092         virtual void
00093         registerMP(const wns::service::dll::UnicastAddress address) = 0;
00094 
00098         virtual void
00099         registerPortal(const wns::service::dll::UnicastAddress address,
00100                        dll::APUpperConvergence* apUC) = 0;
00101 
00105         virtual void
00106         deRegisterProxy(const wns::service::dll::UnicastAddress server,
00107                         const wns::service::dll::UnicastAddress client) = 0;
00108 
00112         virtual void
00113         createPeerLink(const wns::service::dll::UnicastAddress myself,
00114                        const wns::service::dll::UnicastAddress peer,
00115                        const Metric linkMetric = Metric(1)) = 0;
00119         virtual void
00120         updatePeerLink(const wns::service::dll::UnicastAddress myself,
00121                        const wns::service::dll::UnicastAddress peer,
00122                        const Metric linkMetric = Metric(1)) = 0;
00123 
00127         virtual void
00128         closePeerLink(const wns::service::dll::UnicastAddress myself,
00129                       const wns::service::dll::UnicastAddress peer) = 0;
00130 
00131     };
00132 
00133 } // pathselection
00134 } // wifimac
00135 
00136 #endif // WIFIMAC_SCHEDULER_HPP

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