|
virtual void | initializeOrientation () override |
| Initializes the orientation from module parameters. More...
|
|
virtual EulerAngles | slerp (EulerAngles from, EulerAngles to, double delta) |
|
virtual void | rotate () override |
| Moves according to the mobility model to the current simulation time. More...
|
|
virtual void | setTargetOrientation ()=0 |
| Should be redefined in subclasses. More...
|
|
| RotatingMobilityBase () |
|
virtual | ~RotatingMobilityBase () |
|
virtual void | initialize (int stage) override |
| Initializes mobility model parameters. More...
|
|
virtual void | handleSelfMessage (cMessage *message) override |
| Called upon arrival of a self messages, subclasses must override. More...
|
|
void | scheduleUpdate () |
| Schedules the move timer that will update the mobility state. More...
|
|
void | rotateAndUpdate () |
| Moves and notifies listeners. More...
|
|
| MobilityBase () |
|
virtual int | numInitStages () const override |
| Returns the required number of initialize stages. More...
|
|
virtual void | initializePosition () |
| Initializes mobility position. More...
|
|
virtual void | setInitialPosition () |
| Initializes the position from the display string or from module parameters. More...
|
|
virtual void | checkPosition () |
| Checks whether the position is valid or not. More...
|
|
virtual void | handleMessage (cMessage *msg) override |
| This modules should only receive self-messages. More...
|
|
virtual void | updateVisualRepresentation () |
| Moves the visual representation module's icon to the new position on the screen. 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 * | findVisualRepresentation () |
| 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 &speed, double &angle) |
| 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 &speed, double &angle) |
| Invokes one of reflectIfOutside(), wrapIfOutside() and placeRandomlyIfOutside(), depending on the given border policy. More...
|
|
virtual void inet::LinearRotatingMobilityBase::setTargetOrientation |
( |
| ) |
|
|
protectedpure virtual |
Should be redefined in subclasses.
This method gets called when targetOrientation and nextChange has been reached, and its task is to set a new targetOrientation and nextChange. At the end of the movement sequence, it should set nextChange to -1.
Referenced by initializeOrientation(), and rotate().