com.sun.spot.service
Class SpotBlink
java.lang.Object
com.sun.spot.service.BasicService
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
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. |
SpotBlink
public SpotBlink()
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
Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.