SunSPOT API V5.0


com.sun.spot.sensorboard.service
Class EDemoBoardBlink

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

public class EDemoBoardBlink
extends BasicService
implements ISpotBlink

A simple service to blink the LEDs on the SPOT eDemoboard.

Author:
Ron Goldman

Field Summary
 
Fields inherited from interface com.sun.spot.service.IService
PAUSED, PAUSING, READY, RESUMING, RUNNING, STARTING, STOPPED, STOPPING
 
Constructor Summary
EDemoBoardBlink()
           
 
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

EDemoBoardBlink

public EDemoBoardBlink()
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.