SunSPOT API V5.0


com.sun.spot.service
Class SpotBlink

java.lang.Object
  extended by com.sun.spot.service.BasicService
      extended by com.sun.spot.service.SpotBlink
All Implemented Interfaces:
IService, ISpotBlink

public class SpotBlink
extends BasicService
implements ISpotBlink

A simple service to blink the two LEDs on the SPOT main processor board.

Author:
Ron Goldman

Field Summary
 
Fields inherited from interface com.sun.spot.service.IService
PAUSED, PAUSING, READY, RESUMING, RUNNING, STARTING, STOPPED, STOPPING
 
Constructor Summary
SpotBlink()
           
 
Method Summary
 void blink()
          Do the default Blink action.
 void blink(int durationInSecs)
          Do the Blink action for a given time period.
 String getServiceName()
          Return the name of this service.
 
Methods inherited from class com.sun.spot.service.BasicService
getEnabled, getStatus, isRunning, pause, resume, setEnabled, setServiceName, start, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpotBlink

public SpotBlink()
Method Detail

blink

public void blink()
Do the default Blink action.

Specified by:
blink in interface ISpotBlink

blink

public void blink(int durationInSecs)
Do the Blink action for a given time period.

Specified by:
blink in interface ISpotBlink
Parameters:
durationInSecs - time to blink

getServiceName

public String getServiceName()
Description copied from interface: IService
Return the name of this service.

Specified by:
getServiceName in interface IService
Specified by:
getServiceName in class BasicService
Returns:
the name of this service

SunSPOT API V5.0


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