📄 osoperationsinterface.java
字号:
/*QosAodv ver 0.2 - Java AODV (RFC 3561) Protocol HandlerCopyright 2003-2004 ComNets, University of BremenThis program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*/package qosaodv.os;import qosaodv.net.*;/*** This interface defines the common functionality* expected from any operating system to manipulate* the routing environment** @author : Asanga Udugama* @date : 28-jul-2003* @email : adu@comnets.uni-bremen.de**/public interface OSOperationsInterface { /** * Method to implement to initialize the routing * environment to perform AODV protocol handling * @param int level - The initialization level * 0 = full initialization level * 1 - 100 = other init levels * @return int - returns the success or failure */ public int initializeRouteEnvironment(int level); /** * Method to implement to add a route entry in the * routing environment. * @param RouteEntry rtEntry - the route entry from which to get * information * @return int - returns the success or failure */ public int addRoute(RouteEntry rtEntry); /** * Method to implement to remove a route entry in the * routing environment. * @param RouteEntry rtEntry - the route entry from which to get * information * @return int - returns the success or failure */ public int deleteRoute(RouteEntry rtEntry); /** * Method to implement to put the route environment * to the original state before terminating the * protocol handler. * @return int - returns the success or failure */ public int finalizeRouteEnvironment();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -