Package: inet.mobility.single
CircleMobility
simple moduleMoves the node around a circle.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Extends
Name | Type | Description |
---|---|---|
MovingMobilityBase | simple module |
Abstract base module for mobility models. |
Parameters
Name | Type | Default value | Description |
---|---|---|---|
subjectModule | string | "^" |
module path which determines the subject module, the motion of which this mobility model describes, the default value is the parent module |
coordinateSystemModule | string | "" |
module path of the geographic coordinate system module |
displayStringTextFormat | string | "p: %p\nv: %v" |
format string for the mobility module's display string text |
updateDisplayString | bool | true |
enables continuous update of the subject module's position via modifying its display string |
constraintAreaMinX | double | -inf m |
min x position of the constraint area, unconstrained by default (negative infinity) |
constraintAreaMinY | double | -inf m |
min y position of the constraint area, unconstrained by default (negative infinity) |
constraintAreaMinZ | double | -inf m |
min z position of the constraint area, unconstrained by default (negative infinity) |
constraintAreaMaxX | double | inf m |
max x position of the constraint area, unconstrained by default (positive infinity) |
constraintAreaMaxY | double | inf m |
max y position of the constraint area, unconstrained by default (positive infinity) |
constraintAreaMaxZ | double | inf m |
max z position of the constraint area, unconstrained by default (positive infinity) |
updateInterval | double | 0.1s |
the simulation time interval used to regularly signal mobility state changes and update the display |
faceForward | bool | true | |
cx | double |
x coord of the center of the circle |
|
cy | double |
y coord of the center of the circle |
|
cz | double | 0m |
z coord of the center of the circle |
r | double |
radius of the circle |
|
speed | double | 0mps |
speed of the host |
startAngle | double | uniform(0deg, 360deg) |
starting angle |
Properties
Name | Value | Description |
---|---|---|
display | i=block/cogwheel | |
class | CircleMobility |
Signals
Name | Type | Unit |
---|---|---|
mobilityStateChanged | inet::MobilityBase |
Scheduled messages (observed)
msg | kind | ctrl | tags | msgname | context |
---|---|---|---|---|---|
omnetpp::cMessage | 0 | move |
Direct method calls (observed)
call to | function | info |
---|---|---|
AttachedMobility | inet::AttachedMobility::receiveSignal | mobilityStateChanged |
SuperpositioningMobility | inet::SuperpositioningMobility::receiveSignal | mobilityStateChanged |
Source code
// // Moves the node around a circle. // simple CircleMobility extends MovingMobilityBase { parameters: double cx @unit(m); // x coord of the center of the circle double cy @unit(m); // y coord of the center of the circle double cz @unit(m) = default(0m); // z coord of the center of the circle double r @unit(m); // radius of the circle double speed @unit(mps) = default(0mps); // speed of the host double startAngle @unit(deg) = default(uniform(0deg, 360deg)); // starting angle @class(CircleMobility); }File: src/inet/mobility/single/CircleMobility.ned