SelectivityService

Package: inet.protocolelement.service

SelectivityService

compound module

(no description)

sendToPort : SendToPort

Adds a destination port header to packets.

Source:
sendToPort: SendToPort {
    @display("p=150,100");
} sendToL3Address : SendToL3Address

Source:
sendToL3Address: SendToL3Address {
    @display("p=150,200");
} receiveAtPort : ReceiveAtPort

Source:
receiveAtPort: ReceiveAtPort {
    @display("p=350,100");
} receiveAtL3Address : ReceiveAtL3Address

Source:
receiveAtL3Address: ReceiveAtL3Address {
    @display("p=350,200");
}

Usage diagram

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

Properties

Name Value Description
display i=block/layer

Gates

Name Direction Size Description
upperLayerIn input
upperLayerOut output
lowerLayerIn input
lowerLayerOut output

Unassigned submodule parameters

Name Type Default value Description
sendToPort.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

sendToPort.port int
sendToL3Address.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

sendToL3Address.address string
receiveAtPort.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

receiveAtPort.port int
receiveAtL3Address.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

receiveAtL3Address.address string

Source code

module SelectivityService
{
    parameters:
        @display("i=block/layer");
    gates:
        input upperLayerIn;
        output upperLayerOut;
        input lowerLayerIn;
        output lowerLayerOut;
    submodules:
        sendToPort: SendToPort {
            @display("p=150,100");
        }
        sendToL3Address: SendToL3Address {
            @display("p=150,200");
        }
        receiveAtPort: ReceiveAtPort {
            @display("p=350,100");
        }
        receiveAtL3Address: ReceiveAtL3Address {
            @display("p=350,200");
        }
    connections allowunconnected:
        upperLayerIn --> sendToPort.in;
        sendToPort.out --> sendToL3Address.in;
        sendToL3Address.out --> { @display("m=s"); } --> lowerLayerOut;
        lowerLayerIn --> { @display("m=s"); } --> receiveAtL3Address.in;
        receiveAtL3Address.out --> receiveAtPort.in;
        receiveAtPort.out --> upperLayerOut;
}
File: src/inet/protocolelement/service/SelectivityService.ned