|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--advancedrelay.laygo.StatisticsTable
Statistics table object to be returned by ProtocolService.getStatistics().
Encapsulates the statistics table structure defined in laygodef.h.
Constructor Summary | |
StatisticsTable(byte[] data,
int size,
int protocol)
Constructs a StatisticsTable from the data returned by the protocol stack. |
Method Summary | |
int |
getProtocol()
Returns the id of the protocol the statistis are for. |
long |
getRxCount()
Returns the number of bytes received. |
long |
getStatistic(int i)
Returns the value of the ith statistic if i < length(), 0 otherwise. |
long |
getTxCount()
Returns the number of bytes transmitted. |
int |
length()
Returns the number of statistics in the table excluding receive and transmit counts. |
java.lang.String |
toString()
Returns a string representing the complete table. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StatisticsTable(byte[] data, int size, int protocol)
data
- The data returned by the protocol stack.protocol
- The protocol id of the ProtocolService from which the
statistics data came.Method Detail |
public int getProtocol()
public long getRxCount()
public long getStatistic(int i)
public long getTxCount()
public int length()
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 |