NodeStatus

Package: inet.common.lifecycle

NodeStatus

simple module

C++ definition

Keeps track of the status of the 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.

Inheritance diagram

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

Used in compound modules

Name Type Description
AccessPoint compound module

A wireless access point device that connects wireless stations (like WirelessHost) to a wired network. Supports multiple wireless radios and multiple Ethernet ports.

EthernetHost compound module

A simplified network device that communicates directly over Ethernet without higher layer protocols like IP or TCP. It provides a basic host model for Ethernet-only simulations.

EthernetSwitch compound module

EthernetSwitch models a Layer 2 Ethernet switch with support for various IEEE 802.1 protocols and features. It provides frame forwarding based on MAC addresses and implements multiple switching technologies.

LdpMplsRouter compound module

An LDP-capable router.

NodeBase compound module

The fundamental infrastructure for all network nodes focusing on non-communication aspects of network nodes.

RsvpMplsRouter compound module

An RSVP-TE capable router.

Extends

Name Type Description
SimpleModule simple module

Base module for all INET simple modules.

Parameters

Name Type Default value Description
displayStringTextFormat string ""

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

initialStatus string "UP"

TODO @signal, @statistic

Properties

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

Signals

Name Type Unit Description
nodeStatusChanged inet::NodeStatus

Source code

//
// Keeps track of the status of the 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 extends SimpleModule
{
    parameters:
        @class(NodeStatus);
        //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