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

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

Base class for mobility models where movement consists of a sequence of linear movements of constant speed. More...

#include <LineSegmentsMobilityBase.h>

Inherits BasicMobility.

Inherited by ANSimMobility, BonnMotionMobility, and TurtleMobility.

Inheritance diagram for LineSegmentsMobilityBase:

Inheritance graph
[legend]
Collaboration diagram for LineSegmentsMobilityBase:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

 Module_Class_Members (LineSegmentsMobilityBase, BasicMobility, 0)
virtual void handleSelfMsg (cMessage *msg)
 Called upon arrival of a self messages.
virtual void beginNextMove (cMessage *msg)
 Begin new line segment after previous one finished.
virtual void setTargetPosition ()=0
 Should be redefined in subclasses. This method gets called when targetPos and targetTime has been reached, and its task is to set a new targetPos and targetTime. At the end of the movement sequence, it should set targetTime=0.

Protected Attributes

double targetTime
 end time of current linear movement
Coord targetPos
 end position of current linear movement
Coord stepTarget
Coord stepSize
 parameters to handle the movement of the hostSize of a step

Detailed Description

Base class for mobility models where movement consists of a sequence of linear movements of constant speed.

Subclasses must redefine setTargetPosition() which is suppsed to set a new target position and target time once the previous one is reached.

Author:
Andras Varga


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