Adding waf script for building
diff --git a/src/nlsr_adjacent.hpp b/src/nlsr_adjacent.hpp
new file mode 100644
index 0000000..910b8a9
--- /dev/null
+++ b/src/nlsr_adjacent.hpp
@@ -0,0 +1,81 @@
+#ifndef ADJACENT_HPP
+#define ADJACENT_HPP
+
+using namespace std;
+
+class Adjacent{
+
+ public:
+ Adjacent()
+ :adjacentName()
+ ,connectingFace(0)
+ ,linkCost(10.0)
+ ,status(0)
+ ,interestTimedOutNo(0)
+ {
+ }
+
+ Adjacent(const string& an)
+ :connectingFace(0)
+ ,linkCost(0.0)
+ ,status(0)
+ ,interestTimedOutNo(0)
+ {
+ adjacentName=an;
+ }
+
+ Adjacent(const string& an, int cf, double lc, int s, int iton);
+
+ string getAdjacentName(){
+ return adjacentName;
+ }
+
+ void setAdjacentName(const string& an){
+ adjacentName=an;
+ }
+
+ int getConnectingFace(){
+ return connectingFace;
+ }
+
+ void setConnectingFace(int cf){
+ connectingFace=cf;
+ }
+
+ double getLinkCost(){
+ return linkCost;
+ }
+
+ void setLinkCost(double lc){
+ linkCost=lc;
+ }
+
+ int getStatus(){
+ return status;
+ }
+
+ void setStatus(int s){
+ status=s;
+ }
+
+ int getInterestTimedOutNo(){
+ return interestTimedOutNo;
+ }
+
+ void setInterestTimedOutNo(int iton){
+ interestTimedOutNo=iton;
+ }
+
+ bool isAdjacentEqual(Adjacent& adj);
+ private:
+ string adjacentName;
+ int connectingFace;
+ double linkCost;
+ int status;
+ int interestTimedOutNo;
+};
+
+std::ostream&
+operator << (std::ostream &os, Adjacent &adj);
+
+#endif