|
INET Framework for OMNeT++/OMNEST
|
#include <OperationalMixin.h>
Classes | |
| class | Operation |
Protected Types | |
| enum | State { STARTING_OPERATION, OPERATING, STOPPING_OPERATION, CRASHING_OPERATION, NOT_OPERATING } |
Protected Member Functions | |
| virtual int | numInitStages () const override |
| virtual void | initialize (int stage) override |
| virtual void | refreshDisplay () const override |
| virtual void | handleMessage (cMessage *msg) override |
| virtual void | handleMessageWhenDown (cMessage *msg) |
| virtual void | handleMessageWhenUp (cMessage *msg)=0 |
| virtual bool | handleOperationStage (LifecycleOperation *operation, IDoneCallback *doneCallback) override |
| Perform one stage of a lifecycle operation. More... | |
| virtual void | handleStartOperation (LifecycleOperation *operation)=0 |
| virtual void | handleStopOperation (LifecycleOperation *operation)=0 |
| virtual void | handleCrashOperation (LifecycleOperation *operation)=0 |
| virtual State | getInitialOperationalState () const |
| Returns initial operational state: OPERATING or NOT_OPERATING. More... | |
| virtual bool | isInitializeStage (int stage) const =0 |
| virtual bool | isModuleStartStage (int stage) const =0 |
| virtual bool | isModuleStopStage (int stage) const =0 |
| virtual void | handleActiveOperationTimeout (cMessage *message) |
Protected Attributes | |
| State | operationalState = NOT_OPERATING |
| simtime_t | lastChange |
| Operation | activeOperation |
| cMessage * | activeOperationTimeout = nullptr |
| cMessage * | activeOperationExtraTimer = nullptr |
| virtual bool | isUp () const |
| utility functions More... | |
| virtual bool | isDown () const |
| virtual void | setOperationalState (State newState) |
| virtual void | scheduleOperationTimeout (simtime_t timeout) |
| virtual void | setupActiveOperation (LifecycleOperation *operation, IDoneCallback *doneCallback, State) |
| virtual void | delayActiveOperationFinish (simtime_t timeout) |
| virtual void | startActiveOperationExtraTime (simtime_t delay=SIMTIME_ZERO) |
| virtual void | startActiveOperationExtraTimeOrFinish (simtime_t extraTime) |
| virtual void | finishActiveOperation () |
| virtual | ~OperationalMixin () |
| }@ More... | |
Additional Inherited Members | |
Public Types inherited from inet::units::value< Value, Units > | |
| typedef Value | value_type |
| typedef Units | unit |
Public Member Functions inherited from inet::units::value< Value, Units > | |
| value () | |
| value (const value_type &v) | |
| template<typename OtherValue , typename OtherUnits > | |
| value (const value< OtherValue, OtherUnits > &v) | |
| std::string | str () const |
| const value_type & | get () const |
| void | set (const value_type &v) |
| template<typename OtherValue , typename OtherUnits > | |
| value & | operator= (const value< OtherValue, OtherUnits > &other) |
| template<typename OtherValue , typename OtherUnits , typename ResultValue = typename std::remove_cv<decltype(Value() + OtherValue())>::type> | |
| value< ResultValue, Units > | operator+ (const value< OtherValue, OtherUnits > &other) const |
| template<typename OtherValue , typename OtherUnits > | |
| value & | operator+= (const value< OtherValue, OtherUnits > &other) |
| template<typename OtherValue , typename OtherUnits > | |
| value & | operator-= (const value< OtherValue, OtherUnits > &other) |
| template<typename OtherValue , typename OtherUnits , typename ResultValue = typename std::remove_cv<decltype(Value() - OtherValue())>::type> | |
| value< ResultValue, Units > | operator- (const value< OtherValue, OtherUnits > &other) const |
| value | operator- () const |
| template<typename OtherValue , typename OtherUnits , typename ResultValue = typename std::remove_cv<decltype(Value() * OtherValue())>::type> | |
| value< ResultValue, compose< Units, OtherUnits > > | operator* (const value< OtherValue, OtherUnits > &other) const |
| template<typename OtherValue > | |
| value | operator* (OtherValue v) const |
| value & | operator*= (const value_type &v) |
| template<typename OtherValue , typename OtherUnits , typename ResultValue = typename std::remove_cv<decltype(Value() / OtherValue())>::type> | |
| value< ResultValue, compose< Units, pow< OtherUnits, -1 > > > | operator/ (const value< OtherValue, OtherUnits > &other) const |
| value | operator/ (const value_type &v) const |
| value & | operator/= (const value_type &v) |
| template<typename OtherValue , typename OtherUnits > | |
| bool | operator== (const value< OtherValue, OtherUnits > &other) const |
| template<typename OtherValue , typename OtherUnits > | |
| bool | operator!= (const value< OtherValue, OtherUnits > &other) const |
| template<typename OtherValue , typename OtherUnits > | |
| bool | operator< (const value< OtherValue, OtherUnits > &other) const |
| template<typename OtherValue , typename OtherUnits > | |
| bool | operator<= (const value< OtherValue, OtherUnits > &other) const |
| template<typename OtherValue , typename OtherUnits > | |
| bool | operator> (const value< OtherValue, OtherUnits > &other) const |
| template<typename OtherValue , typename OtherUnits > | |
| bool | operator>= (const value< OtherValue, OtherUnits > &other) const |
| value & | operator++ () |
| value | operator++ (int) |
| value & | operator-- () |
| value | operator-- (int) |
Public Member Functions inherited from inet::ILifecycle | |
| virtual | ~ILifecycle () |
|
protected |
|
virtual |
}@
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedpure virtual |
Implemented in inet::Ieee802154Mac, inet::Ipv4, inet::RsvpTe, inet::PimDm, inet::InterfaceTable, inet::PimSm, inet::dymo::Dymo, inet::aodv::Aodv, inet::Udp, inet::CsmaCaMac, inet::tcp::Tcp, inet::PimBase, inet::NextHopForwarding, inet::physicallayer::Radio, inet::Ldp, inet::DhcpClient, inet::Gpsr, inet::EthernetMacBase, inet::Flooding, inet::ProbabilisticBroadcast, inet::Rip, inet::MacForwardingTable, inet::DhcpServer, inet::WiseRoute, inet::Arp, inet::PingApp, inet::ieee80211::Ieee80211Mac, inet::UdpBasicBurst, inet::Ted, inet::ieee80211::Ieee80211MgmtBase, inet::EthernetEncapsulation, inet::Dsdv, inet::MacProtocolBase, inet::GlobalArp, inet::EtherAppClient, inet::UdpVideoStreamServer, inet::EtherTrafGen, inet::IpvxTrafGen, inet::Ieee8021dRelay, inet::AckingMac, inet::ospfv2::Ospfv2, inet::UdpBasicApp, inet::Ieee8022Llc, inet::physicallayer::ShortcutRadio, inet::TunnelApp, inet::UdpSink, inet::Pim, inet::TcpServerHostApp, inet::StpBase, inet::TcpSessionApp, inet::PacketReceiverBase, inet::Ieee8022LlcSocketIo, inet::UdpVideoStreamClient, inet::MacRelayUnitBase, inet::TcpBasicClientApp, inet::EtherAppServer, inet::HostAutoConfigurator, inet::EthernetSocketIo, inet::TelnetApp, inet::UdpSocketIo, inet::IpvxTrafSink, inet::UdpEchoApp, inet::SimpleClockSynchronizer, inet::StreamThroughTransmitter, inet::TcpServerListener, inet::PacketTransmitter, and inet::StreamingTransmitter.
|
overrideprotectedvirtual |
Reimplemented in inet::MacForwardingTable.
|
protectedvirtual |
Reimplemented in inet::MacProtocolBase, inet::physicallayer::Radio, and inet::PacketReceiverBase.
Referenced by inet::PacketReceiverBase::handleMessageWhenDown().
|
protectedpure virtual |
Implemented in inet::RsvpTe, inet::PimDm, inet::Ipv4, inet::PimSm, inet::Ldp, inet::NextHopForwarding, inet::aodv::Aodv, inet::Rip, inet::Arp, inet::Rstp, inet::PingApp, inet::UdpBasicBurst, inet::Dsdv, inet::Stp, inet::GlobalArp, inet::MacForwardingTable, inet::DhcpClient, inet::UdpVideoStreamServer, inet::Ted, inet::IpvxTrafGen, inet::ospfv2::Ospfv2, inet::DhcpServer, inet::EtherTrafGen, inet::EtherAppClient, inet::Pim, inet::UdpBasicApp, inet::ieee80211::Ieee80211MgmtBase, inet::UdpSink, inet::TcpAppBase, inet::TunnelApp, inet::EtherAppServer, inet::UdpVideoStreamClient, inet::EthernetCsmaMac, inet::HostAutoConfigurator, inet::TcpServerHostApp, inet::EthernetMac, inet::IpvxTrafSink, inet::SimpleClockSynchronizer, inet::UdpEchoApp, inet::TcpServerListener, inet::dymo::Dymo, inet::Gpsr, inet::ieee80211::Ieee80211Mac, inet::Ppp, inet::EthernetEncapsulation, inet::PacketTransmitterBase, inet::Ieee8022Llc, inet::physicallayer::ShortcutRadio, inet::PacketReceiverBase, inet::ShortcutMac, inet::Ieee8022LlcSocketIo, inet::StreamThroughTransmitter, inet::EthernetSocketIo, inet::UdpSocketIo, inet::LayeredProtocolBase, inet::DestreamingReceiver, inet::StreamThroughReceiver, inet::PacketReceiver, inet::PacketTransmitter, inet::StreamingTransmitter, and inet::InterfaceTable.
|
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.
|
protectedpure virtual |
Implemented in inet::Ieee802154Mac, inet::Ipv4, inet::RsvpTe, inet::PimDm, inet::InterfaceTable, inet::PimSm, inet::dymo::Dymo, inet::aodv::Aodv, inet::Udp, inet::tcp::Tcp, inet::PimBase, inet::NextHopForwarding, inet::physicallayer::Radio, inet::Ldp, inet::DhcpClient, inet::Gpsr, inet::EthernetMacBase, inet::Flooding, inet::ProbabilisticBroadcast, inet::Rip, inet::MacForwardingTable, inet::DhcpServer, inet::WiseRoute, inet::Arp, inet::PingApp, inet::ieee80211::Ieee80211Mac, inet::UdpBasicBurst, inet::Ted, inet::ieee80211::Ieee80211MgmtBase, inet::EthernetEncapsulation, inet::Dsdv, inet::MacProtocolBase, inet::GlobalArp, inet::EtherAppClient, inet::UdpVideoStreamServer, inet::EtherTrafGen, inet::IpvxTrafGen, inet::Ieee8021dRelay, inet::AckingMac, inet::ospfv2::Ospfv2, inet::UdpBasicApp, inet::Ieee8022Llc, inet::physicallayer::ShortcutRadio, inet::TunnelApp, inet::UdpSink, inet::Pim, inet::PacketTransmitterBase, inet::TcpServerHostApp, inet::StpBase, inet::TcpSessionApp, inet::PacketReceiverBase, inet::Ieee8022LlcSocketIo, inet::UdpVideoStreamClient, inet::MacRelayUnitBase, inet::TcpBasicClientApp, inet::EtherAppServer, inet::HostAutoConfigurator, inet::EthernetSocketIo, inet::TelnetApp, inet::UdpSocketIo, inet::IpvxTrafSink, inet::UdpEchoApp, inet::SimpleClockSynchronizer, and inet::TcpServerListener.
|
protectedpure virtual |
Implemented in inet::Ieee802154Mac, inet::Ipv4, inet::RsvpTe, inet::PimDm, inet::InterfaceTable, inet::PimSm, inet::dymo::Dymo, inet::aodv::Aodv, inet::Udp, inet::CsmaCaMac, inet::tcp::Tcp, inet::PimBase, inet::NextHopForwarding, inet::physicallayer::Radio, inet::Ldp, inet::DhcpClient, inet::Gpsr, inet::EthernetMacBase, inet::Flooding, inet::ProbabilisticBroadcast, inet::Rip, inet::MacForwardingTable, inet::DhcpServer, inet::WiseRoute, inet::Arp, inet::PingApp, inet::ieee80211::Ieee80211Mac, inet::UdpBasicBurst, inet::Ted, inet::ieee80211::Ieee80211MgmtBase, inet::EthernetEncapsulation, inet::Dsdv, inet::MacProtocolBase, inet::GlobalArp, inet::Ppp, inet::EtherAppClient, inet::UdpVideoStreamServer, inet::EtherTrafGen, inet::IpvxTrafGen, inet::Ieee8021dRelay, inet::AckingMac, inet::ospfv2::Ospfv2, inet::UdpBasicApp, inet::Ieee8022Llc, inet::physicallayer::ShortcutRadio, inet::TunnelApp, inet::UdpSink, inet::Pim, inet::TcpServerHostApp, inet::StpBase, inet::TcpSessionApp, inet::PacketReceiverBase, inet::Ieee8022LlcSocketIo, inet::UdpVideoStreamClient, inet::MacRelayUnitBase, inet::TcpBasicClientApp, inet::EtherAppServer, inet::HostAutoConfigurator, inet::EthernetSocketIo, inet::TelnetApp, inet::UdpSocketIo, inet::IpvxTrafSink, inet::UdpEchoApp, inet::SimpleClockSynchronizer, inet::StreamThroughTransmitter, inet::TcpServerListener, inet::PacketTransmitter, and inet::StreamingTransmitter.
|
overrideprotectedvirtual |
Reimplemented in inet::Flooding, inet::LMac, inet::WiseRoute, inet::Ieee802154Mac, inet::XMac, inet::ieee80211::Ieee80211MgmtAp, inet::BMac, inet::ieee80211::Ieee80211Mac, inet::ProbabilisticBroadcast, inet::ieee80211::Ieee80211MgmtBase, inet::AdaptiveProbabilisticBroadcast, inet::ieee80211::Ieee80211MgmtApBase, inet::ieee80211::Ieee80211MgmtStaSimplified, inet::ieee80211::Ieee80211MgmtAdhoc, inet::RsvpTe, inet::PimDm, inet::Ipv4, inet::PimSm, inet::Udp, inet::Ldp, inet::PimBase, inet::EthernetMacBase, inet::NextHopForwarding, inet::physicallayer::Radio, inet::tcp::Tcp, inet::aodv::Aodv, inet::Rip, inet::CsmaCaMac, inet::ieee80211::Ieee80211MgmtSta, inet::InterfaceTable, inet::Arp, inet::dymo::Dymo, inet::PingApp, inet::UdpBasicBurst, inet::Dsdv, inet::AckingMac, inet::Stp, inet::Gpsr, inet::GlobalArp, inet::Ppp, inet::MacForwardingTable, inet::DhcpClient, inet::UdpVideoStreamServer, inet::EthernetEncapsulation, inet::Ted, inet::IpvxTrafGen, inet::ospfv2::Ospfv2, inet::DhcpServer, inet::StpBase, inet::EtherTrafGen, inet::EtherAppClient, inet::Ieee8021dRelay, inet::Rstp, inet::TcpSessionApp, inet::Pim, inet::UdpBasicApp, inet::MacProtocolBase, inet::NetworkProtocolBase, inet::PacketTransmitterBase, inet::UdpSink, inet::Ieee8022Llc, inet::TunnelApp, inet::TcpAppBase, inet::physicallayer::Ieee80211Radio, inet::PacketReceiverBase, inet::Loopback, inet::EtherAppServer, inet::UdpVideoStreamClient, inet::physicallayer::ShortcutRadio, inet::Ieee8022LlcSocketIo, inet::TcpBasicClientApp, inet::TcpEchoApp, inet::TcpServerHostApp, inet::EthernetCsmaMac, inet::ShortcutMac, inet::HostAutoConfigurator, inet::IpvxTrafSink, inet::MacRelayUnitBase, inet::EthernetMac, inet::StreamThroughTransmitter, inet::SimpleClockSynchronizer, inet::TelnetApp, inet::TcpSinkApp, inet::physicallayer::PhysicalLayerBase, inet::EthernetSocketIo, inet::UdpEchoApp, inet::UdpSocketIo, inet::Tun, inet::physicallayer::ApskRadio, inet::StreamingReceiverBase, inet::StreamingTransmitterBase, inet::DestreamingReceiver, and inet::StreamThroughReceiver.
Referenced by inet::PacketReceiverBase::initialize().
|
inlineprotectedvirtual |
|
protectedpure virtual |
Implemented in inet::Ipv4, inet::InterfaceTable, inet::NextHopForwarding, inet::MacForwardingTable, inet::Arp, inet::ieee80211::Ieee80211MgmtBase, inet::EthernetEncapsulation, inet::GlobalArp, inet::MacProtocolBase, inet::Ieee8022Llc, inet::NetworkProtocolBase, inet::MacRelayUnitBase, inet::PacketTransmitterBase, inet::StpBase, inet::HostAutoConfigurator, inet::PacketReceiverBase, inet::physicallayer::PhysicalLayerBase, inet::TransportProtocolBase, inet::ApplicationBase, and inet::RoutingProtocolBase.
|
protectedpure virtual |
Implemented in inet::Ipv4, inet::InterfaceTable, inet::NextHopForwarding, inet::MacForwardingTable, inet::Arp, inet::ieee80211::Ieee80211MgmtBase, inet::EthernetEncapsulation, inet::GlobalArp, inet::MacProtocolBase, inet::Ieee8022Llc, inet::NetworkProtocolBase, inet::MacRelayUnitBase, inet::PacketTransmitterBase, inet::StpBase, inet::HostAutoConfigurator, inet::PacketReceiverBase, inet::physicallayer::PhysicalLayerBase, inet::TransportProtocolBase, inet::ApplicationBase, and inet::RoutingProtocolBase.
|
protectedpure virtual |
Implemented in inet::Ipv4, inet::InterfaceTable, inet::NextHopForwarding, inet::MacForwardingTable, inet::Arp, inet::ieee80211::Ieee80211MgmtBase, inet::EthernetEncapsulation, inet::GlobalArp, inet::MacProtocolBase, inet::Ieee8022Llc, inet::NetworkProtocolBase, inet::MacRelayUnitBase, inet::PacketTransmitterBase, inet::StpBase, inet::HostAutoConfigurator, inet::PacketReceiverBase, inet::physicallayer::PhysicalLayerBase, inet::TransportProtocolBase, inet::ApplicationBase, and inet::RoutingProtocolBase.
|
inlineprotectedvirtual |
utility functions
|
inlineoverrideprotectedvirtual |
|
overrideprotectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |