Simple Module ScenarioManager

File: World/ScenarioManager.ned

C++ definition: click here

ScenarioManager is for setting up and controlling simulation experiments. You can schedule certain events to take place at specified times, like changing a parameter value, changing the bit error rate of a connection, removing or adding connections, removing or adding routes in a routing table, etc, so that you can observe the transient behaviour.

ScenarioManager executes a script specified in XML. It has a few built-in commands, while other commands are dispatched to be carried out by given simple modules. (The C++ class of these simple modules' needs to implement the IScriptable interface, and the processCommand() method must be redefined accordingly).

An example script:

<scenario>
    <set-param t="10" module="host[1].mobility" par="speed" value="5"/>
    <set-param t="20" module="host[1].mobility" par="speed" value="30"/>
    <at t="50">
        <set-param module="host[2].mobility" par="speed" value="10"/>
        <set-param module="host[3].mobility" par="speed" value="10"/>
    </at>
</scenario>

Built-in commands: <set-param>, <set-channel-attr>, <at>.

All commands have a t attribute which carries the simulation time at which the command has to be carried out. You can group several commands to be carried out at the same simulation time using <at>, and then only the <at> command is needed to have a t attribute.

Supported attributes:

Usage diagram:

The following diagram shows usage relationships between modules, networks and channels. Unresolved module (and channel) types are missing from the diagram. Click here to see the full picture.

Used in compound modules:

If a module type shows up more than once, that means it has been defined in more than one NED file.

REDTestDebug (no description)
REDTest (no description)
REDTestTh (no description)
LDPTEST (no description)
RSVPTE4

Example network to demonstrate RSVP-TE.

RSVPTE4

Example network to demonstrate CSPF algorithm used in RSVP-TE. The network consists of 5 LSR and 4 hosts. Host 1 and 2 have different requests of bandwidth level.

RSVPTE4

Example network to demonstrate RSVP-TE.

RSVPTE4

Example network to demonstrate RSVP-TE.

RSVPTE4

Example network to demonstrate RSVP-TE.

MobileNet (no description)
ZebraTest (no description)

Parameters:

Name Type Description
script xml

Source code:

simple ScenarioManager
    parameters:
        script: xml;
endsimple