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

LinearMobility Class Reference
[mobility - modules handling the mobility of the hosts]

Linear movement model. See NED file for more info. More...

#include <LinearMobility.h>

Inherits BasicMobility.

Inheritance diagram for LinearMobility:

Inheritance graph
[legend]
Collaboration diagram for LinearMobility:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Module_Class_Members (LinearMobility, BasicMobility, 0)
virtual void initialize (int)
 Initializes mobility model parameters.

Protected Member Functions

virtual void makeMove ()
 Move the host.
virtual void fixIfHostGetsOutside ()
 Should be redefined in subclasses.

Protected Attributes

double angle
 angle of linear motion
double acceleration
 acceleration of linear motion
Coord stepTarget
 always stores the last step for position display update

Detailed Description

Linear movement model. See NED file for more info.

Author:
Emin Ilker Cetinbas


Member Function Documentation

void LinearMobility::fixIfHostGetsOutside  )  [protected, virtual]
 

Should be redefined in subclasses.

Should invoke handleIfOutside() and pass the references to the parameters to be modified.

Additional action after border handling (such as choosing a new target position if the BorderPolicy is PLACERANDOMLY) should be implemented here.

See also:
HandleIfOutside

Reimplemented from BasicMobility.

void LinearMobility::makeMove  )  [protected, virtual]
 

Move the host.

Move the host if the destination is not reached yet. Otherwise calculate a new random position

Reimplemented from BasicMobility.


The documentation for this class was generated from the following files:
Generated on Fri Jan 12 08:30:03 2007 for Mobility Framework by  doxygen 1.4.4