com.appliancestudio.jbluez
Class HCIDeviceStats

java.lang.Object
  |
  +--com.appliancestudio.jbluez.HCIDeviceStats

public class HCIDeviceStats
extends java.lang.Object

Data object to represent the stats for local devices. It is used as a field in HCIDeviceInfo. This class is essentially a Java representation of the hci_dev_stats struct in the hci.h file provided in the BlueZ libraries.

Version:
1.0
Author:
Edward Kay, ed.kay@appliancestudio.com
See Also:
HCIDeviceInfo

Field Summary
 long acl_rx
           
 long acl_tx
           
 long byte_rx
           
 long byte_tx
           
 long cmd_tx
           
 long err_rx
           
 long err_tx
           
 long evt_rx
           
 long sco_rx
           
 long sco_tx
           
 
Constructor Summary
HCIDeviceStats()
          Default constructor.
HCIDeviceStats(long _err_rx, long _err_tx, long _cmd_tx, long _evt_rx, long _acl_tx, long _acl_rx, long _sco_tx, long _sco_rx, long _byte_rx, long _byte_tx)
          Constructor which sets all the fields in the class.
 
Method Summary
 java.lang.String toString()
          Return all the field values as a String for printing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

err_rx

public long err_rx

err_tx

public long err_tx

cmd_tx

public long cmd_tx

evt_rx

public long evt_rx

acl_tx

public long acl_tx

acl_rx

public long acl_rx

sco_tx

public long sco_tx

sco_rx

public long sco_rx

byte_rx

public long byte_rx

byte_tx

public long byte_tx
Constructor Detail

HCIDeviceStats

public HCIDeviceStats()
Default constructor.


HCIDeviceStats

public HCIDeviceStats(long _err_rx,
                      long _err_tx,
                      long _cmd_tx,
                      long _evt_rx,
                      long _acl_tx,
                      long _acl_rx,
                      long _sco_tx,
                      long _sco_rx,
                      long _byte_rx,
                      long _byte_tx)
Constructor which sets all the fields in the class. This is provided since when creating a new HCIDeviceStats object in the native code (namely C), it is much more efficient since we do not have to ask the JVM for pointers to each individual field.

Parameters:
_err_rx -
_err_tx -
_cmd_tx -
_evt_rx -
_acl_tx -
_acl_rx -
_sco_tx -
_sco_rx -
_byte_rx -
_byte_tx -
Method Detail

toString

public java.lang.String toString()
Return all the field values as a String for printing.

Overrides:
toString in class java.lang.Object
Returns:
A String representation of the data in all the fields.


Copyright © 2002 The Appliance Studio Limited