blob: c8821c1ca56dd5f84c86d1a488d70eea3b06fe3f [file] [log] [blame]
akmhoque87347a32014-01-31 11:00:44 -06001#include<iostream>
2#include<string>
3
akmhoque204e7542014-01-31 16:08:25 -06004#include "nlsr_adjacent.hpp"
akmhoque87347a32014-01-31 11:00:44 -06005
6using namespace std;
7
8Adjacent::Adjacent(const string& an, int cf, double lc, int s, int iton){
9 adjacentName=an;
10 connectingFace=cf;
11 linkCost=lc;
12 status=s;
13 interestTimedOutNo=iton;
14}
15
16std::ostream&
17operator << (std::ostream &os, Adjacent &adj){
18 cout<<"Adjacent : "<< adj.getAdjacentName() << endl;
19 cout<<"Connecting Face: "<<adj.getConnectingFace()<<endl;
20 cout<<"Link Cost: "<<adj.getLinkCost()<<endl;
21 cout<<"Status: "<<adj.getStatus()<<endl;
22 cout<<"Interest Timed out: "<<adj.getInterestTimedOutNo()<<endl;
23 return os;
24}