INET Framework for OMNeT++/OMNEST
AnsaOSPFInterfaceState.h
Go to the documentation of this file.
00001 #ifndef __INET_OSPFINTERFACESTATE_H
00002 #define __INET_OSPFINTERFACESTATE_H
00003 
00004 #include "AnsaOSPFInterface.h"
00005 
00006 namespace AnsaOSPF {
00007 
00008 class InterfaceState {
00009 protected:
00010     void ChangeState(Interface* intf, InterfaceState* newState, InterfaceState* currentState);
00011     void CalculateDesignatedRouter(Interface* intf);
00012 
00013 public:
00014     virtual ~InterfaceState() {}
00015 
00016     virtual void ProcessEvent(Interface* intf, Interface::InterfaceEventType event) = 0;
00017     virtual Interface::InterfaceStateType GetState(void) const = 0;
00018 };
00019 
00020 } // namespace AnsaOSPF
00021 
00022 #endif // __INET_OSPFINTERFACESTATE_H
00023