protected class ContactTimesReport.ConnectionInfo
extends java.lang.Object
| Constructor and Description |
|---|
ContactTimesReport.ConnectionInfo(DTNHost h1,
DTNHost h2) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionEnd()
Should be called when the connection ended to record the time.
|
boolean |
equals(java.lang.Object other)
Returns true if the other connection info contains the same hosts.
|
double |
getConnectionTime()
Returns the time that passed between creation of this info
and call to
connectionEnd(). |
int |
hashCode()
Returns the same hash for ConnectionInfos that have the
same two hosts.
|
java.lang.String |
toString()
Returns a string representation of the info object
|
public void connectionEnd()
getConnectionTime() will use end time as
the time of the request.public double getConnectionTime()
connectionEnd(). Unless connectionEnd() is
called, the difference between start time and current sim time
is returned.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object