Network HttpDirectFlash

Package: inet.examples.httptools.direct.flashdirect
File: examples/httptools/direct/flashdirect/flash.ned

Flash crowd simulation

This is an example of a popularity modification event employed to simulate a flashcrowd. Direct message passing. This scenario is similar to the 10servers scenario used to demonstrate the sockets components.

HttpController DirectHost DirectHost DirectHost DirectHost DirectHost DirectHost DirectHost DirectHost DirectHost DirectHost DirectHost

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Parameters:

Name Type Default value Description
num_browsers double 2

Properties:

Name Value Description
isNetwork
display bgb=754,559

Unassigned submodule parameters:

Name Type Default value Description
controller.events string ""

Popularity modification events defintion file.

controller.eventsSection string ""

Section within the popularity modification file, if one is defined.

controller.config xml

XML configuration file.

server1.tcpApp.linkSpeed double

Used to model transmission delays.

server2.tcpApp.linkSpeed double

Used to model transmission delays.

server3.tcpApp.linkSpeed double

Used to model transmission delays.

server4.tcpApp.linkSpeed double

Used to model transmission delays.

server5.tcpApp.linkSpeed double

Used to model transmission delays.

server6.tcpApp.linkSpeed double

Used to model transmission delays.

server7.tcpApp.linkSpeed double

Used to model transmission delays.

server8.tcpApp.linkSpeed double

Used to model transmission delays.

server9.tcpApp.linkSpeed double

Used to model transmission delays.

abc.tcpApp.linkSpeed double

Used to model transmission delays.

client.tcpApp.linkSpeed double

Used to model transmission delays.

Source code:

//
// Flash crowd simulation
//
// This is an example of a popularity modification event employed to simulate
// a flashcrowd. Direct message passing. This scenario is similar to the 10servers
// scenario used to demonstrate the sockets components.
//
network HttpDirectFlash
{
    parameters:
        double num_browsers @prompt("Number of browsers") = default(2);
        @display("bgb=754,559");
    submodules:
        controller: HttpController {
            parameters:
                @display("p=54,60;i=block/cogwheel");
        }
        server1: DirectHost {
            parameters:
                @display("p=68,164;i=device/server");
        }
        server2: DirectHost {
            parameters:
                @display("p=148,164;i=device/server");
        }
        server3: DirectHost {
            parameters:
                @display("p=228,164;i=device/server");
        }
        server4: DirectHost {
            parameters:
                @display("p=308,164;i=device/server");
        }
        server5: DirectHost {
            parameters:
                @display("p=388,164;i=device/server");
        }
        server6: DirectHost {
            parameters:
                @display("p=468,164;i=device/server");
        }
        server7: DirectHost {
            parameters:
                @display("p=548,164;i=device/server");
        }
        server8: DirectHost {
            parameters:
                @display("p=620,164;i=device/server");
        }
        server9: DirectHost {
            parameters:
                @display("p=700,164;i=device/server");
        }
        abc: DirectHost {
            parameters:
                @display("p=365,300;i=device/server_l");
        }
        client[num_browsers]: DirectHost {
            parameters:
                @display("i=device/laptop");
        }
    connections allowunconnected:
}