SunSPOT API V3.0


com.sun.spot.peripheral.basestation
Class NoArgIntParameterCommand

java.lang.Object
  extended by com.sun.spot.peripheral.basestation.MACCommand
      extended by com.sun.spot.peripheral.basestation.NoArgIntParameterCommand
All Implemented Interfaces:
ICommand
Direct Known Subclasses:
GetChannelAccessFailureCommand, GetNoAckCommand, GetNullPacketAfterAckWaitCommand, GetPLMETransmitCommand, GetWrongAckCommand

public abstract class NoArgIntParameterCommand
extends MACCommand


Field Summary
 
Fields inherited from class com.sun.spot.peripheral.basestation.MACCommand
GetChannelAccessFailureCommand, GetNoAckCommand, GetNullPacketAfterAckWaitCommand, GetPLMETransmitCommand, GetWrongAckCommand, MCPSDataIndicationCommand, MCPSDataRequestCommand, MLMEGetCommand, MLMEResetCommand, MLMERxEnableCommand, MLMESetCommand, MLMEStartCommand, ResetProxyCommand, SetPLMETransmitPowerCommand
 
Constructor Summary
NoArgIntParameterCommand()
           
 
Method Summary
protected abstract  int getIntResult(IProprietaryMAC mac)
           
protected  void prepareResultOrExecute(I802_15_4_MAC mac)
           
protected  Object readResultFrom(DataInputStream dataInputStream)
           
protected  int writePreparedResult(byte[] outputBuffer, int startingOffset)
           
 
Methods inherited from class com.sun.spot.peripheral.basestation.MACCommand
classIndicatorByte, getTimeout, getUID, populateFrom, resultFrom, setUID, writeOnto, writeParametersOnto, writeResultOnto
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoArgIntParameterCommand

public NoArgIntParameterCommand()
Method Detail

prepareResultOrExecute

protected final void prepareResultOrExecute(I802_15_4_MAC mac)
Specified by:
prepareResultOrExecute in class MACCommand

getIntResult

protected abstract int getIntResult(IProprietaryMAC mac)

writePreparedResult

protected final int writePreparedResult(byte[] outputBuffer,
                                        int startingOffset)
                                 throws IOException
Overrides:
writePreparedResult in class MACCommand
Throws:
IOException

readResultFrom

protected final Object readResultFrom(DataInputStream dataInputStream)
                               throws IOException
Overrides:
readResultFrom in class MACCommand
Throws:
IOException

SunSPOT API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.