Moves the node around a rectangle.
See also: ChannelControl
Author: Andras Varga
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Name | Type | Default value | Description |
---|---|---|---|
debug | bool | false |
debug switch |
x1 | double |
rectangle is denoted by the (x1,y1) and (x2,y2) coords |
|
y1 | double | ||
x2 | double | ||
y2 | double | ||
startPos | double |
in range [0.0,4.0): topleft=0, topright=1, bottomright=2, bottomleft=3 |
|
speed | double | 2mps |
speed of the host (in m/s) |
updateInterval | double | 0.1s |
time interval to update the hosts position |
Name | Value | Description |
---|---|---|
display | i=block/cogwheel_s |
// // Moves the node around a rectangle. // // @see ChannelControl // @author Andras Varga // simple RectangleMobility like BasicMobility { parameters: bool debug = default(false); // debug switch double x1; // rectangle is denoted by the (x1,y1) and (x2,y2) coords double y1; double x2; double y2; double startPos; // in range [0.0,4.0): topleft=0, topright=1, bottomright=2, bottomleft=3 double speed @unit("mps") = default(2mps); // speed of the host (in m/s) double updateInterval @unit("s") = default(0.1s); // time interval to update the hosts position @display("i=block/cogwheel_s"); }