INET Framework for OMNeT++/OMNEST
LinearMobility.h
Go to the documentation of this file.
00001 //
00002 // Author: Emin Ilker Cetinbas (niw3_at_yahoo_d0t_com)
00003 // Copyright (C) 2005 Emin Ilker Cetinbas
00004 //
00005 // This program is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU General Public License
00007 // as published by the Free Software Foundation; either version 2
00008 // of the License, or (at your option) any later version.
00009 //
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; if not, see <http://www.gnu.org/licenses/>.
00017 //
00018 
00019 #ifndef LINEAR_MOBILITY_H
00020 #define LINEAR_MOBILITY_H
00021 
00022 #include <omnetpp.h>
00023 #include "BasicMobility.h"
00024 
00025 
00032 class INET_API LinearMobility : public BasicMobility
00033 {
00034   protected:
00035     double speed;          
00036     double angle;          
00037     double acceleration;   
00038     double updateInterval; 
00039     bool stationary;       
00040 
00041   protected:
00043     virtual void initialize(int);
00044 
00045   protected:
00047     virtual void handleSelfMsg(cMessage *msg);
00048 
00050     virtual void move();
00051 };
00052 
00053 #endif
00054