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. |
|end time of current linear movement |
|end position of current linear movement |
|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.