|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.spot.peripheral.radio.policy.proxy.ProxyRadioPolicyManager
public class ProxyRadioPolicyManager
Field Summary | |
---|---|
static String |
RADIO_POLICY_SERVER
|
Fields inherited from interface com.sun.spot.peripheral.radio.IRadioPolicyManager |
---|
DEFAULT_PAN_ID |
Constructor Summary | |
---|---|
ProxyRadioPolicyManager()
|
Method Summary | |
---|---|
void |
closeBaseStation()
Used in the host to close down the base station - a no-op if called on a Spot |
void |
deregisterConnection(IConnectionID conn)
Notify the policy manager that a connection has closed |
int |
getChannelNumber()
Answer the current channel number (between 11 and 26). |
long |
getIEEEAddress()
|
int |
getOutputPower()
Answer the radio output power in decibels. |
short |
getPanId()
Answer the current pan ID. |
boolean |
isRadioReceiverOn()
|
void |
policyHasChanged(IConnectionID conn,
RadioPolicy selection)
Notify the policy manager that a policy has changed |
void |
registerConnection(IConnectionID conn)
Notify the policy manager of a new connection |
void |
setChannelNumber(int channel)
Set the current channel number (between 11 and 26). |
void |
setOutputPower(int power)
Set the radio output power in decibels (between -32 and +31). |
void |
setPanId(short pid)
Set the pan ID (should not be -1 or -2, which are reserved in the I802.15.4 standard). |
boolean |
setRxOn(boolean rxState)
Attempt to set the radio receiver to on or off |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String RADIO_POLICY_SERVER
Constructor Detail |
---|
public ProxyRadioPolicyManager()
Method Detail |
---|
public void policyHasChanged(IConnectionID conn, RadioPolicy selection)
IRadioPolicyManager
policyHasChanged
in interface IRadioPolicyManager
conn
- the connection owning the policy that has changedselection
- the required radio statepublic void registerConnection(IConnectionID conn)
IRadioPolicyManager
registerConnection
in interface IRadioPolicyManager
conn
- the connection being registeredpublic void deregisterConnection(IConnectionID conn)
IRadioPolicyManager
deregisterConnection
in interface IRadioPolicyManager
conn
- the connection being deregisteredpublic boolean isRadioReceiverOn()
isRadioReceiverOn
in interface IRadioPolicyManager
public boolean setRxOn(boolean rxState)
IRadioPolicyManager
setRxOn
in interface IRadioPolicyManager
rxState
- true for rx on, false for rx off
public int getChannelNumber()
IRadioPolicyManager
getChannelNumber
in interface IRadioPolicyManager
public long getIEEEAddress()
getIEEEAddress
in interface IRadioPolicyManager
public int getOutputPower()
IRadioPolicyManager
getOutputPower
in interface IRadioPolicyManager
public short getPanId()
IRadioPolicyManager
getPanId
in interface IRadioPolicyManager
public void setChannelNumber(int channel)
IRadioPolicyManager
setChannelNumber
in interface IRadioPolicyManager
channel
- - the new channel numberpublic void setOutputPower(int power)
IRadioPolicyManager
setOutputPower
in interface IRadioPolicyManager
power
- - new power setting in decibels.public void setPanId(short pid)
IRadioPolicyManager
setPanId
in interface IRadioPolicyManager
pid
- - the new pan IDpublic void closeBaseStation()
IRadioPolicyManager
closeBaseStation
in interface IRadioPolicyManager
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |