blob: c8821c1ca56dd5f84c86d1a488d70eea3b06fe3f [file] [log] [blame]
#include<iostream>
#include<string>
#include "nlsr_adjacent.hpp"
using namespace std;
Adjacent::Adjacent(const string& an, int cf, double lc, int s, int iton){
adjacentName=an;
connectingFace=cf;
linkCost=lc;
status=s;
interestTimedOutNo=iton;
}
std::ostream&
operator << (std::ostream &os, Adjacent &adj){
cout<<"Adjacent : "<< adj.getAdjacentName() << endl;
cout<<"Connecting Face: "<<adj.getConnectingFace()<<endl;
cout<<"Link Cost: "<<adj.getLinkCost()<<endl;
cout<<"Status: "<<adj.getStatus()<<endl;
cout<<"Interest Timed out: "<<adj.getInterestTimedOutNo()<<endl;
return os;
}