INET Framework for OMNeT++/OMNEST
inet::ospfv3::Ospfv3InterfaceStateLoopback Class Reference

#include <Ospfv3InterfaceStateLoopback.h>

Inheritance diagram for inet::ospfv3::Ospfv3InterfaceStateLoopback:
inet::ospfv3::Ospfv3InterfaceState

Public Member Functions

 ~Ospfv3InterfaceStateLoopback ()
 
virtual void processEvent (Ospfv3Interface *intf, Ospfv3Interface::Ospfv3InterfaceEvent event) override
 
Ospfv3Interface::Ospfv3InterfaceFaState getState () const override
 
std::string getInterfaceStateString () const override
 
- Public Member Functions inherited from inet::ospfv3::Ospfv3InterfaceState
virtual ~Ospfv3InterfaceState ()
 

Additional Inherited Members

- Protected Member Functions inherited from inet::ospfv3::Ospfv3InterfaceState
void changeState (Ospfv3Interface *intf, Ospfv3InterfaceState *newState, Ospfv3InterfaceState *currentState)
 
void calculateDesignatedRouter (Ospfv3Interface *intf)
 

Constructor & Destructor Documentation

◆ ~Ospfv3InterfaceStateLoopback()

inet::ospfv3::Ospfv3InterfaceStateLoopback::~Ospfv3InterfaceStateLoopback ( )
inline
20 {}

Member Function Documentation

◆ getInterfaceStateString()

std::string inet::ospfv3::Ospfv3InterfaceStateLoopback::getInterfaceStateString ( ) const
inlineoverridevirtual

Implements inet::ospfv3::Ospfv3InterfaceState.

23 { return std::string("Ospfv3InterfaceStateLoopback"); }

◆ getState()

Ospfv3Interface::Ospfv3InterfaceFaState inet::ospfv3::Ospfv3InterfaceStateLoopback::getState ( ) const
inlineoverridevirtual

◆ processEvent()

void inet::ospfv3::Ospfv3InterfaceStateLoopback::processEvent ( Ospfv3Interface intf,
Ospfv3Interface::Ospfv3InterfaceEvent  event 
)
overridevirtual

Implements inet::ospfv3::Ospfv3InterfaceState.

11 {
12  /*
13  * UNLOOP_IND - change to DOWN and then follow the procedure
14  */
16  interface->reset();
17  changeState(interface, new Ospfv3InterfaceStateDown, this);
18  }
19  if (event == Ospfv3Interface::UNLOOP_IND_EVENT) {
20  changeState(interface, new Ospfv3InterfaceStateDown, this);
21  }
22 } // processEvent

The documentation for this class was generated from the following files:
inet::ospfv3::Ospfv3Interface::INTERFACE_STATE_LOOPBACK
@ INTERFACE_STATE_LOOPBACK
Definition: Ospfv3Interface.h:28
inet::ospfv3::Ospfv3Interface::UNLOOP_IND_EVENT
@ UNLOOP_IND_EVENT
Definition: Ospfv3Interface.h:39
inet::ospfv3::Ospfv3InterfaceState::changeState
void changeState(Ospfv3Interface *intf, Ospfv3InterfaceState *newState, Ospfv3InterfaceState *currentState)
Definition: Ospfv3InterfaceState.cc:10
inet::ospfv3::Ospfv3Interface::INTERFACE_DOWN_EVENT
@ INTERFACE_DOWN_EVENT
Definition: Ospfv3Interface.h:43