00001 /* -*- mode:c++ -*- ******************************************************** 00002 * file: UnitDisk.h 00003 * 00004 * author: Tom Parker 00005 * 00006 * copyright: (C) 2006 Parallel and Distributed Systems Group (PDS) at 00007 * Technische Universiteit Delft, The Netherlands. 00008 * 00009 * This program is free software; you can redistribute it 00010 * and/or modify it under the terms of the GNU General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 2 of the License, or (at your option) any later 00013 * version. 00014 * For further information see file COPYING 00015 * in the top level directory 00016 *************************************************************************** 00017 * description: propagation layer: unit disk model 00018 ***************************************************************************/ 00019 #ifndef UNIT_DISK_H 00020 #define UNIT_DISK_H 1 00021 00022 #include "ConnectionManager.h" 00023 00024 //TODO: clean up UnitDisk code, maybe extends its ned file from baseConnectionManager 00025 class UnitDisk: public ConnectionManager 00026 { 00027 protected: 00029 double radioRange; 00030 00032 bool debug; 00033 00034 public: 00036 void initialize(int stage); 00037 00039 virtual double calcInterfDist() { return par("radioRange").doubleValue(); } 00040 }; 00041 00042 #endif 00043