SunSPOT API V5.0


com.sun.spot.peripheral.basestation
Interface ICommand

All Known Implementing Classes:
ExitCommand, GetChannelAccessFailureCommand, GetNoAckCommand, GetNullPacketAfterAckWaitCommand, GetRadioPropertyCommand, GetRxErrorCommand, GetWrongAckCommand, MACCommand, MCPSDataIndicationCommand, MCPSDataRequestCommand, MLMEGetCommand, MLMEResetCommand, MLMERxEnableCommand, MLMESetCommand, MLMEStartCommand, NoArgIntParameterCommand, ResetErrorCountersCommand, ResetProxyCommand, SetPLMEChannelCommand, SetPLMETransmitPowerCommand

public interface ICommand


Method Summary
 long getTimeout()
           
 int getUID()
           
 void populateFrom(byte[] inputBuffer, int startingOffset)
           
 Object resultFrom(DataInputStream dataInputStream, ICreateExceptions exceptionCreator)
           
 void setUID(int uid)
           
 void writeOnto(DataOutputStream dataOutputStream)
           
 int writeResultOnto(byte[] outputBuffer, int startingOffset, I802_15_4_MAC mac)
          Write the result onto the outputBuffer byte array, starting at startingOffset.
 

Method Detail

writeOnto

void writeOnto(DataOutputStream dataOutputStream)
               throws IOException
Throws:
IOException

populateFrom

void populateFrom(byte[] inputBuffer,
                  int startingOffset)
                  throws IOException
Throws:
IOException

writeResultOnto

int writeResultOnto(byte[] outputBuffer,
                    int startingOffset,
                    I802_15_4_MAC mac)
                    throws IOException
Write the result onto the outputBuffer byte array, starting at startingOffset. Answer the number of bytes that you actually wrote.

Throws:
IOException

resultFrom

Object resultFrom(DataInputStream dataInputStream,
                  ICreateExceptions exceptionCreator)
                  throws Throwable
Throws:
Throwable

setUID

void setUID(int uid)

getUID

int getUID()

getTimeout

long getTimeout()

SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.