Sun SPOT API
Green Release  


com.sun.spot.peripheral.driver.proxy
Class AddCommand

java.lang.Object
  extended by com.sun.squawk.io.mailboxes.Envelope
      extended by com.sun.spot.interisolate.RequestEnvelope
          extended by com.sun.spot.peripheral.driver.proxy.AddCommand

public class AddCommand
extends RequestEnvelope


Constructor Summary
AddCommand(String driverName)
           
 
Method Summary
 ReplyEnvelope execute(Object context)
           
 String getName()
           
 
Methods inherited from class com.sun.spot.interisolate.RequestEnvelope
getContents, sendOn
 
Methods inherited from class com.sun.squawk.io.mailboxes.Envelope
checkCallContext, getReplyAddress, getToAddress
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddCommand

public AddCommand(String driverName)
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:
Throws:
Exception

getName

public String getName()

Sun SPOT API
Green Release  


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