|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimnet.Statistics
simnet.UDPStatistics
Keeps statistics for the data sent and received by a UDP socket. If a socket is closed, and packets are dropped, the statistics will not reflect it.
| Nested Class Summary |
| Nested classes inherited from class simnet.Statistics |
Statistics.StatisticData |
| Field Summary | |
int |
dropped
|
int |
received
|
int |
sent
|
| Fields inherited from class simnet.Statistics |
|
| Constructor Summary | |
UDPStatistics()
Create a new object to store UDP Statistics. |
|
| Method Summary | |
protected java.lang.String |
getHeader()
Return the header to use for the toString method. |
protected java.lang.String |
getStatisticString(Statistics.StatisticData sd)
Return a string for a particular statistic. |
| Methods inherited from class simnet.Statistics |
clear, defineStatistic, getStatisticString, record, record, record, recordAction, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final int sent
public final int dropped
public final int received
| Constructor Detail |
public UDPStatistics()
| Method Detail |
protected java.lang.String getHeader()
getHeader in class Statisticsprotected java.lang.String getStatisticString(Statistics.StatisticData sd)
getStatisticString in class Statistics
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||