30 #define MAXTIME_DBL 9223372036//.854775807
37 Prox::operator double() {
return proximity; };
38 Prox::operator simtime_t() {
return (proximity >=
MAXTIME_DBL)
39 ? MAXTIME : proximity; };
42 Prox::Prox(simtime_t prox) : proximity(SIMTIME_DBL(prox)), accuracy(1) {}
43 Prox::Prox(simtime_t prox,
double acc) : proximity(SIMTIME_DBL(prox)), accuracy(acc) {}
44 Prox::Prox(
double prox,
double acc) : proximity(prox), accuracy(acc) {}
98 os << static_cast<const TransportAddress&>(address)
99 <<
", rtt=" << address.
getProx();