Update of /cvsroot/pyxida/Pyxida/src/edu/harvard/syrah/pyxida/nc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11869/src/edu/harvard/syrah/pyxida/nc
Added Files:
ProxyPingRequestMsg.java ProxyPingResponseMsg.java
Removed Files:
PingRequestMsg.java PingResponseMsg.java
Log Message:
moved ping to proxyping
--- NEW FILE: ProxyPingRequestMsg.java ---
package edu.harvard.syrah.pyxida.nc;
import edu.harvard.syrah.sbon.comm.obj.ObjMessage;
import edu.harvard.syrah.sbon.comm.AddressIF;
/**
* Requests the receiving node's current coordinate, confidence
* and last update time.
*/
public class ProxyPingRequestMsg extends ObjMessage {
static final long serialVersionUID = 1000000001L;
final AddressIF target;
/**
* Creates a ProxyPingRequestMsg
*/
public ProxyPingRequestMsg (AddressIF _target) {
target = _target;
}
}
--- PingResponseMsg.java DELETED ---
--- PingRequestMsg.java DELETED ---
--- NEW FILE: ProxyPingResponseMsg.java ---
package edu.harvard.syrah.pyxida.nc;
import edu.harvard.syrah.pyxida.nc.lib.Coordinate;
import edu.harvard.syrah.sbon.comm.AddressIF;
import edu.harvard.syrah.sbon.comm.obj.ObjMessage;
/**
* Response to ProxyPingRequestMsg.
*/
public class ProxyPingResponseMsg extends ObjMessage {
static final long serialVersionUID = 1000000001L;
final Coordinate remoteCoordinate;
final double remoteError;
final long remoteAge;
final double latency;
public ProxyPingResponseMsg
(Coordinate _remoteCoordinate, double _remoteError, long _remoteAge,
double _latency) {
remoteCoordinate = _remoteCoordinate;
remoteError = _remoteError;
remoteAge = _remoteAge;
latency = _latency;
}
}
|