|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsidnet.stack.std.mac.ieee802_15_4.Phy802_15_4Impl
public class Phy802_15_4Impl
Field Summary | |
---|---|
protected MacAddress |
localAddr
Not in NS-2: mac address of this interface. |
static int |
phyCCAHType
|
static int |
phyEDHType
|
static int |
phyRecvOverHType
|
static int |
phySendOverHType
|
static int |
phyTRXHType
|
static PHY_PIB |
PPIB
|
protected RadioInfo |
radioInfo
radio properties |
Constructor Summary | |
---|---|
Phy802_15_4Impl(int id,
RadioInfo.RadioInfoShared sharedInfo,
EnergyManagement energyManagementUnit,
Node myNode,
long toSleepTimerPeriod)
|
|
Phy802_15_4Impl(PHY_PIB pp,
int id,
RadioInfo.RadioInfoShared sharedInfo,
EnergyManagement energyManagementUnit,
Node myNode,
long toSleepTimerPeriod)
|
Method Summary | |
---|---|
void |
cancelSendOverTimer()
|
void |
CCAHandler()
|
boolean |
channelSupported(byte channel)
|
void |
construct_PPDU(byte psduLength,
MacMessage_802_15_4 psdu)
|
void |
drop(MacMessage_802_15_4 p,
java.lang.String reason)
|
void |
EDHandler()
|
void |
endReceive(java.lang.Double powerObj_mW)
End message reception. |
void |
endTransmit()
End message transmission. |
Phy802_15_4 |
getProxy()
Return proxy entity of this phy layer. |
RadioInfo |
getRadioInfo()
|
double |
getRate_BitsPerSecond(char dataOrSymbol)
|
boolean |
isSendOverTimerBusy()
|
void |
markSleeps()
|
void |
markWakes()
|
byte |
measureLinkQ(MacMessage_802_15_4 p)
|
void |
PD_DATA_indication(byte psduLength,
MacMessage_802_15_4 psdu,
byte ppduLinkQuality)
|
void |
PD_DATA_request(byte psduLength,
MacMessage_802_15_4 psdu)
|
void |
peek(Message msg)
|
void |
PLME_CCA_request()
|
void |
PLME_ED_request()
|
void |
PLME_GET_request(PPIBAenum PIBAttribute)
|
void |
PLME_SET_request(PPIBAenum PIBAttribute,
PHY_PIB PIBAttributeValue)
|
void |
PLME_SET_TRX_STATE_request(PHYenum state)
|
void |
receive(Message msg,
java.lang.Double powerObj_mW,
java.lang.Long durationObj)
Start receiving message. |
void |
recvOverHandler(MacMessage_802_15_4 p)
|
void |
requestNewSleepTimer(TimerInterface802_15_4 timerEntity)
|
void |
reset()
|
MacMessage_802_15_4 |
rxPacket()
|
void |
send(Message msg)
|
void |
sendOverHandler()
|
void |
setFieldEntity(FieldInterface field)
Hook up with the field entity. |
void |
setMacEntity(Mac802_15_4 mac)
Hook up with the mac entity. |
void |
setSleepMode(boolean sleep)
Put radio you in sleep/awake mode. |
void |
transmit(Message msg)
|
void |
transmit(Message msg,
long delay,
long duration)
Start transmitting message. |
void |
TRXHandler()
|
double |
trxTime(MacMessage_802_15_4 p,
boolean phyPkt)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int phyCCAHType
public static final int phyEDHType
public static final int phyTRXHType
public static final int phyRecvOverHType
public static final int phySendOverHType
protected MacAddress localAddr
protected RadioInfo radioInfo
public static PHY_PIB PPIB
Constructor Detail |
---|
public Phy802_15_4Impl(int id, RadioInfo.RadioInfoShared sharedInfo, EnergyManagement energyManagementUnit, Node myNode, long toSleepTimerPeriod)
public Phy802_15_4Impl(PHY_PIB pp, int id, RadioInfo.RadioInfoShared sharedInfo, EnergyManagement energyManagementUnit, Node myNode, long toSleepTimerPeriod)
Method Detail |
---|
public void setMacEntity(Mac802_15_4 mac)
mac
- mac entitypublic Phy802_15_4 getProxy()
public void setFieldEntity(FieldInterface field)
field
- field entitypublic boolean isSendOverTimerBusy() throws JistAPI.Continuation
isSendOverTimerBusy
in interface Phy802_15_4
JistAPI.Continuation
public void cancelSendOverTimer()
cancelSendOverTimer
in interface Phy802_15_4
public void reset()
reset
in interface Phy802_15_4
public void markWakes()
markWakes
in interface Phy802_15_4
public void markSleeps()
markSleeps
in interface Phy802_15_4
public void setSleepMode(boolean sleep)
RadioInterface
setSleepMode
in interface RadioInterface
sleep
- sleep/awake switchpublic RadioInfo getRadioInfo()
public boolean channelSupported(byte channel) throws JistAPI.Continuation
channelSupported
in interface Phy802_15_4
JistAPI.Continuation
public double getRate_BitsPerSecond(char dataOrSymbol) throws JistAPI.Continuation
getRate_BitsPerSecond
in interface Phy802_15_4
JistAPI.Continuation
public double trxTime(MacMessage_802_15_4 p, boolean phyPkt) throws JistAPI.Continuation
trxTime
in interface Phy802_15_4
JistAPI.Continuation
public void construct_PPDU(byte psduLength, MacMessage_802_15_4 psdu)
public void PD_DATA_request(byte psduLength, MacMessage_802_15_4 psdu)
public void PD_DATA_indication(byte psduLength, MacMessage_802_15_4 psdu, byte ppduLinkQuality)
public void PLME_CCA_request()
PLME_CCA_request
in interface Phy802_15_4
public void PLME_ED_request()
PLME_ED_request
in interface Phy802_15_4
public void PLME_GET_request(PPIBAenum PIBAttribute)
PLME_GET_request
in interface Phy802_15_4
public void PLME_SET_TRX_STATE_request(PHYenum state)
PLME_SET_TRX_STATE_request
in interface Phy802_15_4
public void PLME_SET_request(PPIBAenum PIBAttribute, PHY_PIB PIBAttributeValue)
PLME_SET_request
in interface Phy802_15_4
public byte measureLinkQ(MacMessage_802_15_4 p)
public void peek(Message msg)
public void transmit(Message msg, long delay, long duration)
RadioInterface
transmit
in interface RadioInterface
msg
- message object to transmitdelay
- time to the wireduration
- time on the wirepublic void transmit(Message msg)
transmit
in interface Phy802_15_4
public void endTransmit()
RadioInterface
endTransmit
in interface RadioInterface
public void receive(Message msg, java.lang.Double powerObj_mW, java.lang.Long durationObj)
RadioInterface
receive
in interface RadioInterface
msg
- incoming messagepowerObj_mW
- signal strength of incoming message (units: mW)durationObj
- time until end of transmission (units: simtime)public void endReceive(java.lang.Double powerObj_mW)
RadioInterface
endReceive
in interface RadioInterface
powerObj_mW
- signal strength of incoming message (units: mW)public void send(Message msg)
public void requestNewSleepTimer(TimerInterface802_15_4 timerEntity)
public MacMessage_802_15_4 rxPacket()
public void CCAHandler()
CCAHandler
in interface Phy802_15_4
public void EDHandler()
EDHandler
in interface Phy802_15_4
public void TRXHandler()
TRXHandler
in interface Phy802_15_4
public void recvOverHandler(MacMessage_802_15_4 p)
recvOverHandler
in interface Phy802_15_4
public void drop(MacMessage_802_15_4 p, java.lang.String reason)
public void sendOverHandler()
sendOverHandler
in interface Phy802_15_4
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |