A neighbor reachable over a Face. More...
#include <adjacent.hpp>
Public Types | |
enum | Status { STATUS_UNKNOWN = -1, STATUS_INACTIVE = 0, STATUS_ACTIVE = 1 } |
Public Member Functions | |
Adjacent () | |
Adjacent (const ndn::Name &an) | |
Adjacent (const ndn::Name &an, const ndn::FaceUri &faceUri, double lc, Status s, uint32_t iton, uint64_t faceId) | |
const ndn::Name & | getName () const |
void | setName (const ndn::Name &an) |
const ndn::FaceUri & | getFaceUri () const |
void | setFaceUri (const ndn::FaceUri &faceUri) |
uint64_t | getLinkCost () const |
void | setLinkCost (double lc) |
Status | getStatus () const |
void | setStatus (Status s) |
uint32_t | getInterestTimedOutNo () const |
void | setInterestTimedOutNo (uint32_t iton) |
void | setFaceId (uint64_t faceId) |
uint64_t | getFaceId () const |
bool | operator== (const Adjacent &adjacent) const |
Equality is when name, Face URI, and link cost are all equal. More... | |
bool | operator!= (const Adjacent &adjacent) const |
bool | operator< (const Adjacent &adjacent) const |
bool | compare (const ndn::Name &adjacencyName) |
bool | compareFaceId (const uint64_t faceId) |
bool | compareFaceUri (const ndn::FaceUri &faceUri) |
void | writeLog () |
Static Public Attributes | |
static const float | DEFAULT_LINK_COST = 10.0 |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Adjacent &adjacent) |
A neighbor reachable over a Face.
Represents another node that we expect to be running NLSR that we should be able to reach over a direct Face connection.
Definition at line 38 of file adjacent.hpp.
Enumerator | |
---|---|
STATUS_UNKNOWN | |
STATUS_INACTIVE | |
STATUS_ACTIVE |
Definition at line 42 of file adjacent.hpp.
nlsr::Adjacent::Adjacent | ( | ) |
Definition at line 35 of file adjacent.cpp.
nlsr::Adjacent::Adjacent | ( | const ndn::Name & | an | ) |
Definition at line 45 of file adjacent.cpp.
nlsr::Adjacent::Adjacent | ( | const ndn::Name & | an, |
const ndn::FaceUri & | faceUri, | ||
double | lc, | ||
Status | s, | ||
uint32_t | iton, | ||
uint64_t | faceId | ||
) |
Definition at line 55 of file adjacent.cpp.
|
inline |
|
inline |
|
inline |
Definition at line 155 of file adjacent.hpp.
|
inline |
|
inline |
|
inline |
Definition at line 106 of file adjacent.hpp.
|
inline |
|
inline |
|
inline |
Definition at line 94 of file adjacent.hpp.
|
inline |
bool nlsr::Adjacent::operator< | ( | const Adjacent & | adjacent | ) | const |
Definition at line 76 of file adjacent.cpp.
bool nlsr::Adjacent::operator== | ( | const Adjacent & | adjacent | ) | const |
Equality is when name, Face URI, and link cost are all equal.
Definition at line 67 of file adjacent.cpp.
|
inline |
Definition at line 118 of file adjacent.hpp.
|
inline |
Definition at line 75 of file adjacent.hpp.
|
inline |
Definition at line 112 of file adjacent.hpp.
|
inline |
Definition at line 88 of file adjacent.hpp.
|
inline |
Definition at line 63 of file adjacent.hpp.
|
inline |
Definition at line 100 of file adjacent.hpp.
void nlsr::Adjacent::writeLog | ( | ) |
|
friend |
Definition at line 83 of file adjacent.cpp.
|
static |
Definition at line 164 of file adjacent.hpp.