38 , m_linkCost(DEFAULT_LINK_COST)
39 , m_status(STATUS_INACTIVE)
40 , m_interestTimedOutNo(0)
50 , m_interestTimedOutNo(0)
56 Status s, uint32_t iton, uint64_t faceId)
61 , m_interestTimedOutNo(iton)
69 return (m_name == adjacent.
getName()) &&
72 std::numeric_limits<double>::epsilon());
78 return (m_name < adjacent.
getName()) ||
85 os <<
"Adjacent: " << adjacent.m_name <<
"\n Connecting FaceUri: " << adjacent.m_faceUri
86 <<
"\n Link cost: " << adjacent.m_linkCost <<
"\n Status: " << adjacent.m_status
87 <<
"\n Interest Timed Out: " << adjacent.m_interestTimedOutNo << std::endl;
bool operator==(const Adjacent &adjacent) const
Equality is when name, Face URI, and link cost are all equal.
const ndn::FaceUri & getFaceUri() const
static const float DEFAULT_LINK_COST
friend std::ostream & operator<<(std::ostream &os, const Adjacent &adjacent)
#define NLSR_LOG_DEBUG(x)
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California.
#define INIT_LOGGER(name)
const ndn::Name & getName() const
bool operator<(const Adjacent &adjacent) const
A neighbor reachable over a Face.
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
uint64_t getLinkCost() const