simnet
Class TCPStatistics

java.lang.Object
  extended bysimnet.Statistics
      extended bysimnet.UDPStatistics
          extended bysimnet.TCPStatistics

public class TCPStatistics
extends UDPStatistics

Keeps statistics for the data sent and received by a TCP 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 acked
           
 int resent
           
 
Fields inherited from class simnet.UDPStatistics
dropped, received, sent
 
Fields inherited from class simnet.Statistics
 
Constructor Summary
TCPStatistics()
          Create a new object to store TCP Statistics.
 
Method Summary
protected  java.lang.String getHeader()
          Return the header to use for the toString method.
 
Methods inherited from class simnet.UDPStatistics
getStatisticString
 
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

resent

public final int resent

acked

public final int acked
Constructor Detail

TCPStatistics

public TCPStatistics()
Create a new object to store TCP Statistics.

Method Detail

getHeader

protected java.lang.String getHeader()
Return the header to use for the toString method.

Overrides:
getHeader in class UDPStatistics