advancedrelay.laygo
Class StatusSummary

java.lang.Object
  |
  +--advancedrelay.laygo.StatusSummary

public class StatusSummary
extends java.lang.Object

Status summary object for use by the StatusReport class.

Encapsulates the status summary structure defined in laygodef.h.


Constructor Summary
StatusSummary(byte[] data, int n)
          Constructs a StatusSummary from the data returned by the protocol stack.
 
Method Summary
 int getControlCount()
          Returns the number of buffers in the control queue of the block.
 int getDownCount()
          Returns the number of buffers in the down queue of the block.
 boolean getIsBlocked()
          Returns the isBlocked flag of the block.
 boolean getIsBlocking()
          Returns the isBlocking flag of the block.
 int getMajor()
          Returns the major device id of the block.
 int getMinor()
          Returns the minor device id of the block.
 int getProtocol()
          Returns the protocol of the block.
 int getState()
          Returns the state of the block.
 int getUpCount()
          Returns the number of buffers in the up queue of the block.
static int sizeOf()
          Returns the number of bytes of data occupied by 1 summary.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusSummary

public StatusSummary(byte[] data,
                     int n)
Constructs a StatusSummary from the data returned by the protocol stack.

Parameters:
data - The data returned by the protocol stack.
n - Starting index of the summary in the data.
Method Detail

getControlCount

public int getControlCount()
Returns the number of buffers in the control queue of the block.


getDownCount

public int getDownCount()
Returns the number of buffers in the down queue of the block.


getIsBlocked

public boolean getIsBlocked()
Returns the isBlocked flag of the block.


getIsBlocking

public boolean getIsBlocking()
Returns the isBlocking flag of the block.


getMajor

public int getMajor()
Returns the major device id of the block.


getMinor

public int getMinor()
Returns the minor device id of the block.


getProtocol

public int getProtocol()
Returns the protocol of the block.


getState

public int getState()
Returns the state of the block.


getUpCount

public int getUpCount()
Returns the number of buffers in the up queue of the block.


sizeOf

public static int sizeOf()
Returns the number of bytes of data occupied by 1 summary.