Simple Module SimpleGameClient

Package: oversim.applications.simplegameclient
File: src/applications/simplegameclient/SimpleGameClient.ned

C++ definition

(no description)

SimpleGameClient

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram. Click here to see the full picture.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.

Extends:

Name Type Description
BaseApp simple module

Base class for application implementations

Used in compound modules:

Name Type Description
SimpleGameClientModules compound module (no description)

Parameters:

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

Properties:

Name Value Description
class SimpleGameClient
display i=block/app

Gates:

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

tcpIn input

gate from the TCP layer

tcpOut output

gate to the TCP layer

udpOut output

gate to the UDP layer

to_lowerTier output

gate to the lower tier

to_upperTier output

gate to the upper tier

Source code:

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
}