Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.synchrona.jred.irlap
Class IrLAPStateNDM  view IrLAPStateNDM download IrLAPStateNDM.java

java.lang.Object
  extended bycom.synchrona.jred.irlap.IrLAPState
      extended bycom.synchrona.jred.irlap.IrLAPStateNDM

class IrLAPStateNDM
extends IrLAPState

Implement IrLAP's Normal Disconnected Mode.


Field Summary
protected  com.synchrona.util.Log m_log
           
private static IrLAPState s_instance
           
 
Constructor Summary
private IrLAPStateNDM()
           
 
Method Summary
 void connectionRequest(IrLAPContext context, int nDestination)
           
 void connectResponse(IrLAPContext context, int nDestination, byte yConnection, byte[] ayParameters)
           
 void debug(java.lang.String strCategory, java.lang.String strMessage)
           
 void discoveryRequest(IrLAPContext context)
          Begin active discovery of other IrDA devices.
static IrLAPState getInstance()
           
 void handleData(IrLAPContext context, byte yConnection, int nNr, boolean bCommand, boolean bPoll, byte[] ayData)
          Somebody has sent us data.
 void handleDataRequest(IrLAPContext context, byte ayData, int nOffset, int nLength)
          An IrLAP service user wants to send data to an IrLAP client.
 void handleDisconnect(IrLAPContext context, int nSource, byte yConnection)
           
 void handleFTimerExpired(IrLAPContext context)
           
 void handlePTimerExpired(IrLAPContext context)
           
 void handleQueryTimerExpired(IrLAPContext context)
           
 void handleRR(IrLAPContext context, byte yConnection, int nNr, boolean bCommand, boolean bPoll)
           
 void handleSNRM(IrLAPContext context, int nSource, int nDestination, byte yConnection, byte[] ayParameters)
           
 void handleUA(IrLAPContext context, byte[] ayParams, int nOffset, int nLength)
           
 void handleWatchdogTimerExpired(IrLAPContext context)
           
 void handleXID(IrLAPContext context, int nSource, int nDestination, byte ySlot, boolean bCommand, byte[] ayHints)
           
protected  void logIfEnabled(java.lang.String strMessage)
           
 void setLog(com.synchrona.util.Log log)
           
 void setLog(java.io.PrintWriter log)
           
 void setLogging(boolean bDoLogging)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_instance

private static IrLAPState s_instance

m_log

protected com.synchrona.util.Log m_log
Constructor Detail

IrLAPStateNDM

private IrLAPStateNDM()
Method Detail

getInstance

public static IrLAPState getInstance()

connectionRequest

public void connectionRequest(IrLAPContext context,
                              int nDestination)
                       throws java.lang.Exception

discoveryRequest

public void discoveryRequest(IrLAPContext context)
                      throws java.lang.Exception
Begin active discovery of other IrDA devices. Active discovery is not implemented in this version of JRed.

Overrides:
discoveryRequest in class IrLAPState

handleSNRM

public void handleSNRM(IrLAPContext context,
                       int nSource,
                       int nDestination,
                       byte yConnection,
                       byte[] ayParameters)
                throws java.lang.Exception
Overrides:
handleSNRM in class IrLAPState

handleXID

public void handleXID(IrLAPContext context,
                      int nSource,
                      int nDestination,
                      byte ySlot,
                      boolean bCommand,
                      byte[] ayHints)
               throws java.lang.Exception
Overrides:
handleXID in class IrLAPState

connectResponse

public void connectResponse(IrLAPContext context,
                            int nDestination,
                            byte yConnection,
                            byte[] ayParameters)
                     throws java.lang.Exception

handleData

public void handleData(IrLAPContext context,
                       byte yConnection,
                       int nNr,
                       boolean bCommand,
                       boolean bPoll,
                       byte[] ayData)
                throws java.lang.Exception
Somebody has sent us data.


handleDataRequest

public void handleDataRequest(IrLAPContext context,
                              byte ayData,
                              int nOffset,
                              int nLength)
                       throws java.lang.Exception
An IrLAP service user wants to send data to an IrLAP client.


handleDisconnect

public void handleDisconnect(IrLAPContext context,
                             int nSource,
                             byte yConnection)
                      throws java.lang.Exception

handleFTimerExpired

public void handleFTimerExpired(IrLAPContext context)
                         throws java.lang.Exception

handlePTimerExpired

public void handlePTimerExpired(IrLAPContext context)
                         throws java.lang.Exception

handleQueryTimerExpired

public void handleQueryTimerExpired(IrLAPContext context)
                             throws java.lang.Exception

handleRR

public void handleRR(IrLAPContext context,
                     byte yConnection,
                     int nNr,
                     boolean bCommand,
                     boolean bPoll)
              throws java.lang.Exception

handleUA

public void handleUA(IrLAPContext context,
                     byte[] ayParams,
                     int nOffset,
                     int nLength)
              throws java.lang.Exception

handleWatchdogTimerExpired

public void handleWatchdogTimerExpired(IrLAPContext context)
                                throws java.lang.Exception

debug

public void debug(java.lang.String strCategory,
                  java.lang.String strMessage)

setLog

public void setLog(com.synchrona.util.Log log)

setLog

public void setLog(java.io.PrintWriter log)

setLogging

public void setLogging(boolean bDoLogging)

logIfEnabled

protected void logIfEnabled(java.lang.String strMessage)
                     throws java.lang.Exception