|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectreport.ContactTimesReport.ConnectionInfo
protected class ContactTimesReport.ConnectionInfo
Objects of this class store time information about contacts.
Constructor Summary | |
---|---|
ContactTimesReport.ConnectionInfo(DTNHost h1,
DTNHost h2)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContactTimesReport.ConnectionInfo(DTNHost h1, DTNHost h2)
Method Detail |
---|
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.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |