|
SunSPOT API V5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.spot.service.BasicService com.sun.spot.peripheral.radio.LowPanSpotRadioHelper
public class LowPanSpotRadioHelper
A facade so OTA can access low-level radio features.
Field Summary |
---|
Fields inherited from interface com.sun.spot.service.IService |
---|
PAUSED, PAUSING, READY, RESUMING, RUNNING, STARTING, STOPPED, STOPPING |
Constructor Summary | |
---|---|
LowPanSpotRadioHelper()
|
Method Summary | |
---|---|
String |
getDatagramConnectionProtocol()
Tell others the Datagram protocol name for use with GCF. |
int |
getLinkQuality(Datagram dg)
Returns the link quality for the received datagram as a combination of RSSI and CORR. |
int |
getLinkStrength(Datagram dg)
Returns the link strength for the received datagram. |
RouteInfo[] |
getRouteInfo()
Return an array of the current route info to all known addresses. |
RouteInfo[] |
getRouteInfo(long address)
Return information on the current route(s) to the specified destination address. |
String |
getRoutingManagerName()
Return the name of the current Routing Manager. |
String |
getServiceName()
Return the name of this service. |
String |
getStreamConnectionProtocol()
Tell others the Stream protocol name for use with GCF. |
long |
getTimestamp(Datagram dg)
Return the time that a Datagram packet was actually received/sent. |
boolean |
isBroadcast(Datagram dg)
Tell if datagram was sent as a broadcast message. |
boolean |
isMutableRoutingManager()
Check whether this Routing Manager allows writing to the Routing Table. |
static void |
main(String[] args)
Static method to register the LowPan radio stack with the base OTA code. |
void |
routeFound(RouteInfo info,
Object uniqueKey)
Callback for findRouteInfo(). |
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 |
Methods inherited from interface com.sun.spot.service.IService |
---|
getEnabled, getStatus, isRunning, pause, resume, setEnabled, setServiceName, start, stop |
Constructor Detail |
---|
public LowPanSpotRadioHelper()
Method Detail |
---|
public static void main(String[] args)
args
- ignoredpublic String getServiceName()
IService
getServiceName
in interface IService
getServiceName
in class BasicService
public String getDatagramConnectionProtocol()
getDatagramConnectionProtocol
in interface ISpotRadioHelper
public String getStreamConnectionProtocol()
getStreamConnectionProtocol
in interface ISpotRadioHelper
public int getLinkQuality(Datagram dg)
getLinkQuality
in interface ISpotRadioHelper
dg
- Datagram
public int getLinkStrength(Datagram dg)
getLinkStrength
in interface ISpotRadioHelper
dg
- Datagram
public long getTimestamp(Datagram dg)
getTimestamp
in interface ISpotRadioHelper
dg
- the Datagram to check
public boolean isBroadcast(Datagram dg)
isBroadcast
in interface ISpotRadioHelper
dg
- the Datagram to check
public String getRoutingManagerName()
getRoutingManagerName
in interface ISpotRadioHelper
public RouteInfo[] getRouteInfo(long address)
getRouteInfo
in interface ISpotRadioHelper
address
- the specified destination address
public void routeFound(RouteInfo info, Object uniqueKey)
routeFound
in interface RouteEventClient
info
- uniqueKey
- public RouteInfo[] getRouteInfo()
getRouteInfo
in interface ISpotRadioHelper
public boolean isMutableRoutingManager()
isMutableRoutingManager
in interface ISpotRadioHelper
|
SunSPOT API V5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |