INET Framework for OMNeT++/OMNEST
|
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. More...
#include <NodeStatus.h>
Public Types | |
enum | State { UP, DOWN, GOING_UP, GOING_DOWN } |
Public Member Functions | |
virtual State | getState () const |
Public Member Functions inherited from inet::ILifecycle | |
virtual | ~ILifecycle () |
Static Public Attributes | |
static simsignal_t | nodeStatusChangedSignal = registerSignal("nodeStatusChanged") |
Protected Member Functions | |
virtual int | numInitStages () const override |
virtual void | initialize (int stage) override |
virtual void | handleMessage (cMessage *msg) override |
virtual bool | handleOperationStage (LifecycleOperation *operation, int stage, IDoneCallback *doneCallback) override |
Perform one stage of a lifecycle operation. More... | |
virtual void | setState (State state) |
virtual void | refreshDisplay () const override |
Static Protected Member Functions | |
static State | getStateByName (const char *name) |
Private Attributes | |
State | state |
std::string | origIcon |
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.
Other modules can obtain the network node's status by calling the getState() method.
See NED file for more information.
|
inlinevirtual |
Referenced by inet::Define_Module(), inet::power::SimpleEpEnergyManagement::executeNodeOperation(), inet::power::SimpleCcBattery::executeNodeOperation(), inet::power::SimpleEpEnergyStorage::executeNodeOperation(), handleOperationStage(), inet::OperationalBase::initialize(), inet::TelnetApp::initialize(), inet::MACRelayUnit::initialize(), inet::TCPSinkApp::initialize(), inet::TCPSrvHostApp::initialize(), inet::IPvXTrafSink::initialize(), inet::rtp::RTP::initialize(), inet::bgp::BGPRouting::initialize(), inet::ieee80211::Ieee80211MgmtBase::initialize(), inet::TCPGenericSrvApp::initialize(), inet::IPv4NodeConfigurator::initialize(), inet::rtp::RTCP::initialize(), inet::VoIPStreamReceiver::initialize(), inet::Ieee8021dRelay::initialize(), inet::STPBase::initialize(), inet::EtherLLC::initialize(), inet::tcp::TCP_lwIP::initialize(), inet::SimpleVoIPSender::initialize(), inet::VoIPStreamSender::initialize(), inet::DHCPServer::initialize(), inet::tcp::TCP_NSC::initialize(), inet::TED::initialize(), inet::IPvXTrafGen::initialize(), inet::PacketDrillApp::initialize(), inet::DHCPClient::initialize(), inet::ICMPv6::initialize(), inet::httptools::HttpServerBase::initialize(), inet::SCTPServer::initialize(), inet::SCTPClient::initialize(), inet::SCTPPeer::initialize(), inet::SimpleVoIPReceiver::initialize(), inet::httptools::HttpBrowserBase::initialize(), inet::AODVRouting::initialize(), inet::IPv6Tunneling::initialize(), inet::IPv4RoutingTable::initialize(), inet::tcp::TCP::initialize(), inet::IPv6NeighbourDiscovery::initialize(), inet::UDP::initialize(), inet::RIPRouting::initialize(), inet::IPv6::initialize(), inet::RSVP::initialize(), inet::TCPEchoApp::isNodeUp(), inet::MACBase::isNodeUp(), inet::TCPBasicClientApp::isNodeUp(), inet::EtherAppSrv::isNodeUp(), inet::TCPSessionApp::isNodeUp(), inet::EtherTrafGen::isNodeUp(), inet::IPvXTrafGen::isNodeUp(), inet::EtherAppCli::isNodeUp(), inet::ospf::OSPFRouting::isNodeUp(), inet::PingApp::isNodeUp(), inet::GlobalARP::isNodeUp(), inet::ARP::isNodeUp(), inet::GPSR::isNodeUp(), inet::LDP::isNodeUp(), inet::dymo::DYMO::isNodeUp(), inet::IPv4::isNodeUp(), inet::L2NodeConfigurator::receiveSignal(), and inet::power::SimpleEpEnergyManagement::scheduleLifecycleOperationTimer().
|
staticprotected |
Referenced by initialize().
|
inlineoverrideprotectedvirtual |
|
overrideprotectedvirtual |
Perform one stage of a lifecycle operation.
Processing may be done entirely within this method, or may be a longer process that involves nonzero simulation time or several events, and is triggered by this method call.
Return value: true = "done"; false = "not yet done, will invoke doneCallback when done"
Implements inet::ILifecycle.
|
overrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
|
overrideprotectedvirtual |
|
protectedvirtual |
Referenced by handleOperationStage().
|
static |
Referenced by setState().
|
private |
Referenced by initialize(), and refreshDisplay().
|
private |
Referenced by getStateByName(), initialize(), refreshDisplay(), and setState().