Adding waf script for building
diff --git a/src/nlsr_adl.hpp b/src/nlsr_adl.hpp
new file mode 100644
index 0000000..0d868ae
--- /dev/null
+++ b/src/nlsr_adl.hpp
@@ -0,0 +1,54 @@
+#ifndef NLSR_ADL_HPP
+#define NLSR_ADL_HPP
+
+#include <ndn-cpp-dev/face.hpp>
+#include "nlsr_adjacent.hpp"
+#include<list>
+
+class nlsr;
+
+using namespace std;
+
+class Adl{
+
+public:
+ Adl();
+ ~Adl();
+ int insert(Adjacent& adj);
+ int updateAdjacentStatus(string adjName, int s);
+ int updateAdjacentLinkCost(string adjName, double lc);
+ std::list<Adjacent>& getAdjList();
+ bool isNeighbor(string adjName);
+ void incrementTimedOutInterestCount(string& neighbor);
+ int getTimedOutInterestCount(string& neighbor);
+ int getStatusOfNeighbor(string& neighbor);
+ void setStatusOfNeighbor(string& neighbor, int status);
+ void setTimedOutInterestCount(string& neighbor, int count);
+ void addAdjacentsFromAdl(Adl& adl);
+
+ bool isAdjLsaBuildable(nlsr& pnlsr);
+ int getNumOfActiveNeighbor();
+ Adjacent getAdjacent(string adjName);
+
+ bool isAdlEqual(Adl &adl);
+
+ int getAdlSize()
+ {
+ return adjList.size();
+ }
+
+ void resetAdl()
+ {
+ if( adjList.size() > 0 )
+ {
+ adjList.clear();
+ }
+ }
+
+ void printAdl();
+
+private:
+ std::list< Adjacent > adjList;
+};
+
+#endif