#include <ProxNodeHandle.h>
Public Member Functions | |
| operator double () | |
| operator simtime_t () | |
| Prox () | |
| Prox (simtime_t prox) | |
| Prox (simtime_t prox, double acc) | |
| Prox (double prox, double acc) | |
| bool | operator== (Prox p) const |
| bool | operator!= (Prox p) const |
Public Attributes | |
| double | proximity |
| double | accuracy |
Static Public Attributes | |
| static const Prox | PROX_SELF |
| static const Prox | PROX_UNKNOWN |
| static const Prox | PROX_TIMEOUT |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Prox &prox) |
Definition at line 33 of file ProxNodeHandle.h.
| Prox::Prox | ( | ) |
| Prox::Prox | ( | simtime_t | prox | ) |
| Prox::Prox | ( | simtime_t | prox, | |
| double | acc | |||
| ) |
| Prox::Prox | ( | double | prox, | |
| double | acc | |||
| ) |
| Prox::operator double | ( | ) |
| Prox::operator simtime_t | ( | ) |
Definition at line 38 of file ProxNodeHandle.cc.
00038 { return (proximity >= MAXTIME_DBL) 00039 ? MAXTIME : proximity; };
| bool Prox::operator!= | ( | Prox | p | ) | const |
| bool Prox::operator== | ( | Prox | p | ) | const |
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const Prox & | prox | |||
| ) | [friend] |
Definition at line 72 of file ProxNodeHandle.cc.
00073 { 00074 if (prox == Prox::PROX_SELF) os << "[self]"; 00075 else if (prox == Prox::PROX_UNKNOWN) os << "[unknown]"; 00076 else if (prox == Prox::PROX_TIMEOUT) os << "[timeout]"; 00077 else { 00078 os << prox.proximity; 00079 if (prox.accuracy != 1) os << " (a=" << prox.accuracy << ")"; 00080 } 00081 return os; 00082 }
| double Prox::accuracy |
Definition at line 41 of file ProxNodeHandle.h.
Referenced by StdProxComparator::compare(), KademliaBucketEntry::KademliaBucketEntry(), operator<<(), operator==(), and KademliaBucketEntry::setRtt().
const Prox Prox::PROX_SELF [static] |
Definition at line 35 of file ProxNodeHandle.h.
Referenced by NeighborCache::getProx(), oversim::Chord::handleRpcFixfingersResponse(), operator<<(), and BasePastry::pingNodes().
const Prox Prox::PROX_TIMEOUT [static] |
Definition at line 37 of file ProxNodeHandle.h.
Referenced by BasePastry::determineAliveTable(), NeighborCache::getProx(), oversim::Chord::handleRpcFixfingersResponse(), operator<<(), BasePastry::pingNodes(), oversim::Chord::proxCallback(), BasePastry::proxCallback(), and NeighborCache::setNodeTimeout().
const Prox Prox::PROX_UNKNOWN [static] |
Definition at line 36 of file ProxNodeHandle.h.
Referenced by NeighborCache::estimateProx(), NeighborCache::getCoordinateBasedProx(), NeighborCache::getProx(), oversim::Chord::handleRpcFixfingersResponse(), Bamboo::lookupFinished(), operator<<(), BasePastry::pingNodes(), and ProxExtractor< T >::prox().
| double Prox::proximity |
Definition at line 40 of file ProxNodeHandle.h.
Referenced by NeighborCache::calcRttError(), StdProxComparator::compare(), oversim::Chord::handleRpcFixfingersResponse(), KademliaBucketEntry::KademliaBucketEntry(), Bamboo::lookupFinished(), operator double(), operator simtime_t(), operator<<(), operator==(), BasePastry::pingNodes(), oversim::Chord::proxCallback(), BasePastry::proxCallback(), and KademliaBucketEntry::setRtt().
1.5.8