NodeStatus¶
Package: inet.common.lifecycle
simple module NodeStatus
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.
Usage diagram¶
Inheritance diagram¶
Used in compound modules¶
Name |
Type |
Description |
|---|---|---|
compound module |
The fundamental infrastructure for all network nodes focusing on non-communication aspects of network nodes. |
|
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. |
|
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. |
|
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. |
Extends¶
Name |
Type |
Description |
|---|---|---|
simple module |
Base module for all INET simple modules. |
Parameters¶
Name |
Type |
Default value |
Description |
|---|---|---|---|
displayStringTextFormat |
string |
“{stateStr}” |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
initialStatus |
string |
“UP” |
Initial status of the network node |
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);
displayStringTextFormat = default("{stateStr}");
//TODO @signal, @statistic
string initialStatus = default("UP"); // Initial status of the network node
@display("i=block/cogwheel;is=s");
@signal[nodeStatusChanged](type=inet::NodeStatus);
}