|
INET Framework for OMNeT++/OMNEST
|
00001 #ifndef __INET_OSPFNEIGHBORSTATE_H 00002 #define __INET_OSPFNEIGHBORSTATE_H 00003 00004 #include "AnsaOSPFNeighbor.h" 00005 00006 namespace AnsaOSPF { 00007 00008 class NeighborState { 00009 protected: 00010 void ChangeState(Neighbor* neighbor, NeighborState* newState, NeighborState* currentState); 00011 00012 public: 00013 virtual ~NeighborState() {} 00014 00015 virtual void ProcessEvent(Neighbor* neighbor, Neighbor::NeighborEventType event) = 0; 00016 virtual Neighbor::NeighborStateType GetState(void) const = 0; 00017 }; 00018 00019 } // namespace AnsaOSPF 00020 00021 #endif // __INET_OSPFNEIGHBORSTATE_H 00022