NodeStatus

Package: inet.common.lifecycle

NodeStatus

simple module

Keeps track of the status of network node (up, down, etc.) for other modules, and also displays it as a small overlay icon on this module and on the module of the network node.

Used in compound modules

Name Type Description
AccessPoint compound module

A generic access point supporting multiple wireless radios, and multiple ethernet ports. The type of the ethernet MAC, relay unit and wireless card can be specified as parameters.

EtherHost compound module

An example host with one Ethernet port and a traffic generator that generates request-reply traffic directly over Ethernet. This host model does not contain higher layer protocols (IP, TCP). By default it is configured to use half-duplex MAC (CSMA/CD).

EtherSwitch compound module

Model of an Ethernet switch.

LDP_LSR compound module

An LDP-capable router.

NodeBase compound module

Contains the common lower layers (linklayer and networklayer) of Router, StandardHost, WirelessHost etc.

RSVP_LSR compound module

An RSVP-TE capable router.

Parameters

Name Type Default value Description
initialStatus string "UP"

TODO @signal, @statistic

Properties

Name Value Description
display i=block/cogwheel;is=s

Signals

Name Type Unit
nodeStatusChanged inet::NodeStatus

Source code

//
// Keeps track of the status of network node (up, down, etc.) for other
// modules, and also displays it as a small overlay icon on this module
// and on the module of the network node.
//
simple NodeStatus
{
    parameters:
        //TODO @signal, @statistic
        string initialStatus = default("UP"); // initial status of the network node
        @display("i=block/cogwheel;is=s");
        @signal[nodeStatusChanged](type=inet::NodeStatus);
}
File: src/inet/common/lifecycle/NodeStatus.ned