#include <TurtleMobility.h>
Inherits LineSegmentsMobilityBase.
Inheritance diagram for TurtleMobility:
Public Member Functions | |
Module_Class_Members (TurtleMobility, LineSegmentsMobilityBase, 0) | |
virtual void | initialize (int) |
Initializes mobility model parameters. | |
virtual void | setTargetPosition () |
Overridden from LineSegmentsMobilityBase. Invokes resumeScript(). | |
virtual void | fixIfHostGetsOutside () |
Overridden from LineSegmentsMobilityBase. | |
Protected Member Functions | |
void | resumeScript () |
Process next statements from script. | |
void | executeStatement (cXMLElement *nextStatement) |
Execute the given statement. | |
double | getValue (const char *s) |
Parse attrs in the script -- accepts things like "uniform(10,50) as well. | |
void | gotoNextStatement () |
Advance nextStatement pointer. | |
Protected Attributes | |
cXMLElement * | turtleScript |
cXMLElement * | nextStatement |
double | angle |
BorderPolicy | borderPolicy |
std::stack< long > | loopVars |
|
Initializes mobility model parameters. Reads the parameters. If the host is not stationary it calculates a random position and schedules a timer to trigger the first movement Reimplemented from BasicMobility. |
|
Process next statements from script. Will set a new targetTime and targetPos |