#include <CircleMobility.h>
Inherits BasicMobility.
Inheritance diagram for CircleMobility:


Public Member Functions | |
| Module_Class_Members (CircleMobility, 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 | |
| Coord | center |
| double | r |
| double | omega |
| angular velocity [rad/s], derived from speed and radius | |
| double | angle |
| direction from the centre of the circle | |
| Coord | targetPos |
| Target position for the host. | |
|
|
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.
Reimplemented from BasicMobility. |
1.4.4