#include <LineSegmentsMobilityBase.h>
Inherits BasicMobility.
Inherited by ANSimMobility, BonnMotionMobility, and TurtleMobility.
Inheritance diagram for LineSegmentsMobilityBase:


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 | |
Subclasses must redefine setTargetPosition() which is suppsed to set a new target position and target time once the previous one is reached.
1.4.4