• Main Page
  • Classes
  • Files
  • File List

/Users/yzchen/ns/ns-allinone-2.33/ns-2.33/diffusion3/filters/gear/gear_attr.hh

00001 //
00002 // gear_attr.hh   : GEAR Filter Attribute Definitions
00003 // authors        : Yan Yu and Fabio Silva
00004 //
00005 // Copyright (C) 2000-2002 by the University of Southern California
00006 // Copyright (C) 2000-2002 by the University of California
00007 // $Id: gear_attr.hh,v 1.2 2005/09/13 04:53:48 tomh Exp $
00008 //
00009 // This program is free software; you can redistribute it and/or
00010 // modify it under the terms of the GNU General Public License,
00011 // version 2, as published by the Free Software Foundation.
00012 //
00013 // This program is distributed in the hope that it will be useful,
00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 // GNU General Public License for more details.
00017 //
00018 // You should have received a copy of the GNU General Public License along
00019 // with this program; if not, write to the Free Software Foundation, Inc.,
00020 // 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
00021 //
00022 // Linking this file statically or dynamically with other modules is making
00023 // a combined work based on this file.  Thus, the terms and conditions of
00024 // the GNU General Public License cover the whole combination.
00025 //
00026 // In addition, as a special exception, the copyright holders of this file
00027 // give you permission to combine this file with free software programs or
00028 // libraries that are released under the GNU LGPL and with code included in
00029 // the standard release of ns-2 under the Apache 2.0 license or under
00030 // otherwise-compatible licenses with advertising requirements (or modified
00031 // versions of such code, with unchanged license).  You may copy and
00032 // distribute such a system following the terms of the GNU GPL for this
00033 // file and the licenses of the other code concerned, provided that you
00034 // include the source code of that other code when and as the GNU GPL
00035 // requires distribution of source code.
00036 //
00037 // Note that people who make modified versions of this file are not
00038 // obligated to grant this special exception for their modified versions;
00039 // it is their choice whether to do so.  The GNU General Public License
00040 // gives permission to release a modified version without this exception;
00041 // this exception also makes it possible to release a modified version
00042 // which carries forward this exception.
00043 
00044 #ifndef _GEAR_ATTR_HH_
00045 #define _GEAR_ATTR_HH_
00046 
00047 #ifdef HAVE_CONFIG_H
00048 #include "config.h"
00049 #endif // HAVE_CONFIG_H
00050 
00051 #include "diffapp.hh"
00052 
00053 // GEAR Attribute's keys
00054 #define GEO_LONGITUDE_KEY        6000
00055 #define GEO_LATITUDE_KEY         6001
00056 #define GEO_REMAINING_ENERGY_KEY 6002
00057 #define GEO_BEACON_TYPE_KEY      6003
00058 #define GEO_INTEREST_MODE_KEY    6004
00059 #define GEO_INTEREST_HOPS_KEY    6005
00060 #define GEO_HEADER_KEY           6006
00061 #define GEO_H_VALUE_KEY          6007
00062 
00063 extern NRSimpleAttributeFactory<double> GeoLongitudeAttr;
00064 extern NRSimpleAttributeFactory<double> GeoLatitudeAttr;
00065 extern NRSimpleAttributeFactory<double> GeoRemainingEnergyAttr;
00066 extern NRSimpleAttributeFactory<int> GeoBeaconTypeAttr;
00067 extern NRSimpleAttributeFactory<void *> GeoHeuristicValueAttr;
00068 extern NRSimpleAttributeFactory<int> GeoInterestModeAttr;
00069 extern NRSimpleAttributeFactory<void *> GeoHeaderAttr;
00070 
00071 #endif // !_GEAR_ATTR_HH_

Generated on Tue Aug 10 2010 16:16:06 for ns-2.33 by  doxygen 1.7.1