Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

LinearMobility.h

00001 /* -*- mode:c++ -*- ********************************************************
00002  * file:        LinearMobility.h
00003  *
00004  * author:      Emin Ilker Cetinbas (niw3_at_yahoo_d0t_com)
00005  *
00006  * Copyright    (C) 2005 Emin Ilker Cetinbas
00007  *
00008  *              This program is free software; you can redistribute it
00009  *              and/or modify it under the terms of the GNU General Public
00010  *              License as published by the Free Software Foundation; either
00011  *              version 2 of the License, or (at your option) any later
00012  *              version.
00013  *              For further information see file COPYING
00014  *              in the top level directory
00015  ***************************************************************************
00016  * part of:     framework implementation developed by tkn
00017  **************************************************************************/
00018 
00019 
00020 #ifndef LINEAR_MOBILITY_H
00021 #define LINEAR_MOBILITY_H
00022 
00023 #include <omnetpp.h>
00024 #include <BasicMobility.h>
00025 
00026 
00033 class LinearMobility : public BasicMobility
00034 {
00035   protected:
00036     double angle;          
00037     double acceleration;   
00038 
00040     Coord stepTarget;
00041 
00042   public:
00043     Module_Class_Members( LinearMobility, BasicMobility, 0 );
00044 
00046     virtual void initialize(int);
00047 
00048   protected:
00050     virtual void makeMove();
00051 
00052     virtual void fixIfHostGetsOutside();
00053 };
00054 
00055 #endif
00056 

Generated on Fri Jan 12 08:29:32 2007 for Mobility Framework by  doxygen 1.4.4