Mobility model which places all hosts at constant distances within the simulation area (resulting in a regular grid).
More...
|
| virtual void | setInitialPosition () override |
| | Initializes the position according to the mobility model. More...
|
| |
| virtual void | handleSelfMessage (cMessage *message) override |
| | Called upon arrival of a self messages, subclasses must override. More...
|
| |
| | MobilityBase () |
| |
| virtual int | getId () const override |
| |
| virtual int | numInitStages () const override |
| | Returns the required number of initialize stages. More...
|
| |
| virtual void | initialize (int stage) override |
| | Initializes mobility model parameters. More...
|
| |
| virtual void | initializePosition () |
| | Initializes mobility position. More...
|
| |
| virtual void | checkPosition () |
| | Checks whether the position is valid or not. More...
|
| |
| virtual void | initializeOrientation () |
| | Initializes the orientation from module parameters. More...
|
| |
| virtual void | refreshDisplay () const override |
| | Moves the visual representation module's icon to the new position on the screen. More...
|
| |
| virtual void | updateDisplayStringFromMobilityState () const |
| |
| virtual void | handleParameterChange (const char *name) override |
| | Allows changing parameters from the GUI. More...
|
| |
| virtual void | handleMessage (cMessage *msg) override |
| | This modules should only receive self-messages. More...
|
| |
| virtual void | emitMobilityStateChangedSignal () |
| | Emits a signal with the updated mobility state. More...
|
| |
| virtual Coord | getRandomPosition () |
| | Returns a new random position satisfying the constraint area. More...
|
| |
| virtual cModule * | findSubjectModule () |
| | Returns the module that represents the object moved by this mobility module. More...
|
| |
| virtual bool | isOutside () |
| | Returns true if the mobility is outside of the constraint area. More...
|
| |
| virtual void | reflectIfOutside (Coord &targetPosition, Coord &velocity, rad &angle, rad &elevation, Quaternion &quaternion) |
| | Utility function to reflect the node if it goes outside the constraint area. More...
|
| |
| virtual void | wrapIfOutside (Coord &targetPosition) |
| | Utility function to wrap the node to the opposite edge (torus) if it goes outside the constraint area. More...
|
| |
| virtual void | placeRandomlyIfOutside (Coord &targetPosition) |
| | Utility function to place the node randomly if it goes outside the constraint area. More...
|
| |
| virtual void | raiseErrorIfOutside () |
| | Utility function to raise an error if the node gets outside the constraint area. More...
|
| |
| virtual void | handleIfOutside (BorderPolicy policy, Coord &targetPosition, Coord &velocity) |
| | Invokes one of reflectIfOutside(), wrapIfOutside() and placeRandomlyIfOutside(), depending on the given border policy. More...
|
| |
| virtual void | handleIfOutside (BorderPolicy policy, Coord &targetPosition, Coord &velocity, rad &heading) |
| |
| virtual void | handleIfOutside (BorderPolicy policy, Coord &targetPosition, Coord &velocity, rad &heading, rad &elevation) |
| |
| virtual void | handleIfOutside (BorderPolicy policy, Coord &targetPosition, Coord &velocity, rad &heading, rad &elevation, Quaternion &quaternion) |
| |
Mobility model which places all hosts at constant distances within the simulation area (resulting in a regular grid).
- Author
- Isabel Dietrich