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

ConstSpeedMobility.h

00001 /* -*- mode:c++ -*- ********************************************************
00002  * file:        ConstSpeedMobility.h
00003  *
00004  * author:      Steffen Sroka
00005  *
00006  * copyright:   (C) 2004 Telecommunication Networks Group (TKN) at
00007  *              Technische Universitaet Berlin, Germany.
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  * part of:     framework implementation developed by tkn
00018  **************************************************************************/
00019 
00020 
00021 #ifndef CONST_SPEED_MOBILITY_H
00022 #define CONST_SPEED_MOBILITY_H
00023 
00024 #include <omnetpp.h>
00025 
00026 #include <BasicMobility.h>
00027 
00028 
00041 class ConstSpeedMobility : public BasicMobility
00042 {
00043   protected:
00047     Coord stepSize;
00049     int numSteps;
00051     int step;
00054     Coord targetPos;
00055     Coord stepTarget;
00056     
00057     //    double lastStep;
00058 
00059   public:
00060     Module_Class_Members( ConstSpeedMobility, BasicMobility, 0 );
00061 
00063     virtual void initialize(int);
00064 
00065   protected:
00067     virtual void setTargetPosition();
00068 
00070     virtual void makeMove();
00071 
00072     //    void fixIfHostGetsOutside();
00073 };
00074 
00075 #endif

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