(no description)
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.
BaseApp (simple module) |
Base class for application implementations |
If a module type shows up more than once, that means it has been defined in more than one NED file.
SimpleGameClientModules (compound module) | (no description) |
Name | Type | Default value | Description |
---|---|---|---|
rpcUdpTimeout | double |
default timeout value for direct RPCs |
|
rpcKeyTimeout | double |
default timeout value for routed RPCs |
|
optimizeTimeouts | bool |
calculate timeouts from measured RTTs and network coordinates |
|
rpcExponentialBackoff | bool |
if true, doubles the timeout for every retransmission |
|
debugOutput | bool |
enable debug output |
|
movementRate | double |
movement updates per second |
|
areaDimension | double |
movement range from [0.0, 0.0] to [areaDimension, areaDimension] |
|
useScenery | bool |
generate scenery for simulated area (very slow for large areas, should be false except when used with realworld/simplecraft) |
|
movementSpeed | double |
movement speed in m/s |
|
movementGenerator | string |
responsible for different movement models (randomRoaming, groupRoaming, greatGathering, realWorldRoaming) |
|
groupSize | int |
clients per group |
|
mtu | int |
maximum transmission unit |
Name | Value | Description |
---|---|---|
class | SimpleGameClient | |
display | i=block/app |
Name | Direction | Size | Description |
---|---|---|---|
udpIn | input |
gate from the UDP layer |
|
from_lowerTier | input |
gate from the lower tier |
|
from_upperTier | input |
gate from the upper tier |
|
direct_in | input |
gate for sendDirect |
|
trace_in | input |
gate for trace file commands |
|
udpOut | output |
gate to the UDP layer |
|
to_lowerTier | output |
gate to the lower tier |
|
to_upperTier | output |
gate to the upper tier |
simple SimpleGameClient extends BaseApp { parameters: @class(SimpleGameClient); double movementRate; // movement updates per second double areaDimension; // movement range from [0.0, 0.0] to [areaDimension, areaDimension] bool useScenery; // generate scenery for simulated area // (very slow for large areas, should be false except when used with realworld/simplecraft) double movementSpeed @unit(mps); // movement speed in m/s string movementGenerator; // responsible for different movement models // (randomRoaming, groupRoaming, greatGathering, realWorldRoaming) int groupSize; // clients per group int mtu; // maximum transmission unit }