SunSPOT API V3.0


com.sun.spot.peripheral.proxy
Class PIOCommand

java.lang.Object
  extended by com.sun.squawk.io.mailboxes.Envelope
      extended by com.sun.spot.interisolate.RequestEnvelope
          extended by com.sun.spot.peripheral.proxy.PIOCommand
Direct Known Subclasses:
ClaimCommand, DisableIrqCommand, EnableIrqCommand, GetAvailableCommand, ReleaseCommand, WaitForIrqCommand

public abstract class PIOCommand
extends RequestEnvelope


Constructor Summary
PIOCommand(int pioSelector)
           
 
Method Summary
protected abstract  ReplyEnvelope execute(IAT91_PIO pio)
           
 ReplyEnvelope execute(Object context)
           
 
Methods inherited from class com.sun.spot.interisolate.RequestEnvelope
getContents, getUid
 
Methods inherited from class com.sun.squawk.io.mailboxes.Envelope
checkCallContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PIOCommand

public PIOCommand(int pioSelector)
Method Detail

execute

public ReplyEnvelope execute(Object context)
                      throws Exception
Specified by:
execute in class RequestEnvelope
Parameters:
context - An arbitrary object that the request needs to execute itself
Returns:
a subclass of ReplyEnvelope representing the return value of the execution
Throws:
Exception

execute

protected abstract ReplyEnvelope execute(IAT91_PIO pio)
                                  throws Exception
Throws:
Exception

SunSPOT API V3.0


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