akmhoque | 87347a3 | 2014-01-31 11:00:44 -0600 | [diff] [blame] | 1 | #ifndef ADL_HPP |
| 2 | #define ADL_HPP |
| 3 | |
| 4 | #include <ndn-cpp-dev/face.hpp> |
akmhoque | 204e754 | 2014-01-31 16:08:25 -0600 | [diff] [blame] | 5 | #include "nlsr_adjacent.hpp" |
akmhoque | 87347a3 | 2014-01-31 11:00:44 -0600 | [diff] [blame] | 6 | #include<list> |
| 7 | |
| 8 | using namespace std; |
| 9 | |
| 10 | class Adl{ |
| 11 | |
| 12 | public: |
| 13 | Adl(); |
| 14 | ~Adl(); |
| 15 | int insert(Adjacent& adj); |
| 16 | int updateAdjacentStatus(string adjName, int s); |
| 17 | int updateAdjacentLinkCost(string adjName, double lc); |
akmhoque | 87347a3 | 2014-01-31 11:00:44 -0600 | [diff] [blame] | 18 | std::list<Adjacent> getAdjList(); |
akmhoque | a8cd6b9 | 2014-01-31 20:13:26 -0600 | [diff] [blame] | 19 | bool isNeighbor(string adjName); |
| 20 | void incrementTimedOutInterestCount(string& neighbor); |
| 21 | int getTimedOutInterestCount(string& neighbor); |
| 22 | int getStatusOfNeighbor(string& neighbor); |
| 23 | void setStatusOfNeighbor(string& neighbor, int status); |
| 24 | void setTimedOutInterestCount(string& neighbor, int count); |
akmhoque | 87347a3 | 2014-01-31 11:00:44 -0600 | [diff] [blame] | 25 | |
akmhoque | a8cd6b9 | 2014-01-31 20:13:26 -0600 | [diff] [blame] | 26 | void printAdl(); |
akmhoque | 87347a3 | 2014-01-31 11:00:44 -0600 | [diff] [blame] | 27 | |
| 28 | private: |
| 29 | std::list< Adjacent > adjList; |
| 30 | }; |
| 31 | |
| 32 | #endif |