|
||||||||||
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.Mac802_15_4Impl
public class Mac802_15_4Impl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface jist.swans.mac.MacInterface |
---|
MacInterface.Mac802_11 |
Field Summary | |
---|---|
static boolean |
ack4data
|
byte |
backoffStatus
|
TimerInterface802_15_4 |
bcnRxT
|
byte |
beaconPeriods
|
byte |
beaconPeriods2
|
static byte |
callBack
|
DevCapability |
capability
|
static int |
DBG_UID
|
sidnet.stack.std.mac.ieee802_15_4.DEVICELINK |
deviceLink1
|
sidnet.stack.std.mac.ieee802_15_4.DEVICELINK |
deviceLink2
|
MacAddress |
localAddr
mac address of this interface. |
static byte |
macBackoffBoundType
|
double |
macBcnOtherRxTime
|
double |
macBcnRxTime
|
double |
macBcnTxTime
|
byte |
macBeaconOrder2
|
byte |
macBeaconOrder3
|
static byte |
macIFSHType
|
static byte |
macTxBcnCmdDataHType
|
sidnet.stack.std.mac.ieee802_15_4.MAC_PIB |
mpib
|
PAN_ELE |
panDes
|
PAN_ELE |
panDes2
|
Phy802_15_4 |
phyEntity
Physical downcall entity interface. |
MacMessage_802_15_4 |
rxBeacon
|
sidnet.stack.std.mac.ieee802_15_4.SuperframeSpec |
sfSpec
|
sidnet.stack.std.mac.ieee802_15_4.SuperframeSpec |
sfSpec2
|
sidnet.stack.std.mac.ieee802_15_4.SuperframeSpec |
sfSpec3
|
sidnet.stack.std.mac.ieee802_15_4.taskPending |
taskP
|
PHY_PIB |
tmp_ppib
|
MacMessage_802_15_4 |
txAck
|
static byte |
TxOp_Acked
|
static byte |
TxOp_GTS
|
static byte |
TxOp_Indirect
|
static byte |
TxOp_SecEnabled
|
static byte |
txOption
|
static boolean |
verbose
NS-2 |
Constructor Summary | |
---|---|
Mac802_15_4Impl(MacAddress addr,
RadioInfo.RadioInfoShared radioInfo,
EnergyManagement energyManagement,
Node myNode)
|
|
Mac802_15_4Impl(MacAddress addr,
RadioInfo.RadioInfoShared radioInfo,
EnergyManagement energyManagement,
Node myNode,
sidnet.stack.std.mac.ieee802_15_4.MAC_PIB mp)
|
Method Summary | |
---|---|
void |
assoRspWaitHandler()
|
void |
backoffBoundHandler()
|
void |
beaconRxHandler()
|
void |
beaconSearchHandler()
|
void |
beaconTxHandler(boolean forTX)
|
boolean |
canProceedWOcsmaca(MacMessage_802_15_4 p)
|
void |
csmaca_backoffHandler()
|
void |
csmaca_bcnOtherHandler()
|
void |
csmaca_deferCCAHandler()
|
void |
csmacaCallBack(PHYenum status)
|
void |
dataWaitHandler()
|
void |
drop(MacMessage_802_15_4 p,
java.lang.String reason)
|
void |
extractHandler()
|
byte |
get_sfSpec2_FinCAP()
|
int |
get_sfSpec2_sd()
|
int |
getBattLifeExtSlotNum()
|
double |
getCAP(boolean small)
|
double |
getCAPbyType(int type)
|
double |
getMacBcnRxTime()
|
byte |
getMacBeaconOrder2()
|
byte |
getMpibMacBeaconOrder()
|
Mac802_15_4 |
getProxy()
Return proxy entity of this mac. |
int |
hdr_dst(char[] hdr,
int dst)
|
int |
hdr_dst(hdr_mac hdr,
int dst)
|
int |
hdr_src(char[] hdr,
int src)
|
int |
hdr_src(hdr_mac hdr,
int src)
|
int |
hdr_type(char[] hdr,
int type)
|
int |
hdr_type(hdr_mac hdr,
int type)
|
void |
IFSHandler()
|
void |
init(boolean reset)
|
void |
isPanCoor(boolean isPC)
|
double |
locateBoundary(boolean parent,
double wtime)
|
void |
MCPS_DATA_indication(byte SrcAddrMode,
int SrcPANId,
int SrcAddr,
byte DstAddrMode,
int DstPANId,
int DstAddr,
byte msduLength,
MacMessage_802_15_4 msdu,
byte mpduLinkQuality,
boolean SecurityUse,
byte ACLEntry)
|
void |
MCPS_DATA_request(byte SrcAddrMode,
int SrcPANId,
int SrcAddr,
byte DstAddrMode,
int DstPANId,
int DstAddr,
byte msduLength,
MacMessage_802_15_4 msdu,
byte msduHandle,
byte TxOptions)
|
void |
MCPS_PURGE_request(byte msduHandle)
|
void |
MLME_ASSOCIATE_request(byte LogicalChannel,
byte CoordAddrMode,
int CoordPANId,
int CoordAddress,
byte CapabilityInformation,
boolean SecurityEnable)
|
void |
MLME_ASSOCIATE_response(int DeviceAddress,
int AssocShortAddress,
MACenum status,
boolean SecurityEnable)
|
void |
MLME_DISASSOCIATE_indication(int DeviceAddress,
byte DisassociateReason,
boolean SecurityUse,
byte ACLEntry)
|
void |
MLME_DISASSOCIATE_request(IE3ADDR DeviceAddress,
byte DisassociateReason,
boolean SecurityEnable)
|
void |
MLME_GET_request(MPIBAenum PIBAttribute)
|
void |
MLME_GTS_confirm(byte GTSCharacteristics,
MACenum status)
|
void |
MLME_GTS_indication(int DevAddress,
byte GTSCharacteristics,
boolean SecurityUse,
byte ACLEntry)
|
void |
MLME_GTS_request(byte GTSCharacteristics,
boolean SecurityEnable)
|
void |
MLME_ORPHAN_response(int OrphanAddress,
int ShortAddress,
boolean AssociatedMember,
boolean SecurityEnable)
|
void |
MLME_POLL_request(byte CoordAddrMode,
int CoordPANId,
int CoordAddress,
boolean SecurityEnable)
|
void |
MLME_RESET_request(boolean SetDefaultPIB)
|
void |
MLME_RX_ENABLE_request(boolean DeferPermit,
int RxOnTime,
int RxOnDuration)
|
void |
MLME_SCAN_request(byte ScanType,
int ScanChannels,
byte ScanDuration)
|
void |
MLME_SET_request(MPIBAenum PIBAttribute,
sidnet.stack.std.mac.ieee802_15_4.MAC_PIB PIBAttributeValue)
|
void |
MLME_START_request(int PANId,
byte LogicalChannel,
byte BeaconOrder,
byte SuperframeOrder,
boolean PANCoordinator,
boolean BatteryLifeExtension,
boolean CoordRealignment,
boolean SecurityEnable)
|
void |
MLME_SYNC_request(byte LogicalChannel,
boolean TrackBeacon)
|
int |
p802_15_4hdr_dst(hdr_mac hdr,
int dst)
|
int |
p802_15_4hdr_src(hdr_mac hdr,
int src)
|
int |
p802_15_4hdr_type(hdr_mac hdr,
int type)
|
void |
PD_DATA_confirm(PHYenum status)
|
void |
peek(Message msg)
Radio has locked onto a packet signal; mac may have a peek. |
void |
PLME_CCA_confirm(PHYenum status)
|
void |
PLME_ED_confirm(PHYenum status,
byte EnergyLevel)
|
void |
PLME_GET_confirm(PHYenum status,
PPIBAenum PIBAttribute,
PHY_PIB PIBAttributeValue)
|
void |
PLME_SET_confirm(PHYenum status,
PPIBAenum PIBAttribute)
|
void |
PLME_SET_TRX_STATE_confirm(PHYenum status)
|
void |
plme_set_trx_state_request(PHYenum state)
|
void |
receive(Message m)
Radio has received a packet for mac to process. |
void |
recv(MacMessage_802_15_4 p)
|
void |
recvAck(MacMessage_802_15_4 p)
|
void |
recvBeacon(MacMessage_802_15_4 p)
|
void |
recvCommand(MacMessage_802_15_4 p)
|
void |
recvData(MacMessage_802_15_4 p)
|
void |
reset()
|
void |
resetTimers()
|
void |
resetTRX()
|
void |
rxEnableHandler()
|
void |
scanHandler()
|
void |
send(Message msg,
MacAddress nextHop)
Network layer would like to send the following packet. |
void |
sendUp(MacMessage_802_15_4 msg)
|
void |
setNetEntity(NetInterface net,
byte netid)
Hook up with the network entity. |
void |
setPhyEntity(Phy802_15_4 phy)
Hook down with the Physical entity. |
void |
setRadioMode(byte mode)
Update mac regarding new mode of its radio. |
boolean |
sscs_neverAsso()
|
void |
startDevice()
|
boolean |
toParent(MacMessage_802_15_4 p)
|
void |
txBcnCmdDataHandler()
|
void |
txHandler()
|
void |
txOverHandler()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte TxOp_Acked
public static final byte TxOp_GTS
public static final byte TxOp_Indirect
public static final byte TxOp_SecEnabled
public static final byte macTxBcnCmdDataHType
public static final byte macIFSHType
public static final byte macBackoffBoundType
public MacAddress localAddr
public static boolean verbose
public static byte txOption
public static boolean ack4data
public static byte callBack
public static int DBG_UID
public sidnet.stack.std.mac.ieee802_15_4.taskPending taskP
public sidnet.stack.std.mac.ieee802_15_4.MAC_PIB mpib
public PHY_PIB tmp_ppib
public DevCapability capability
public sidnet.stack.std.mac.ieee802_15_4.SuperframeSpec sfSpec
public sidnet.stack.std.mac.ieee802_15_4.SuperframeSpec sfSpec2
public sidnet.stack.std.mac.ieee802_15_4.SuperframeSpec sfSpec3
public byte beaconPeriods
public byte beaconPeriods2
public PAN_ELE panDes
public PAN_ELE panDes2
public MacMessage_802_15_4 rxBeacon
public double macBcnTxTime
public double macBcnRxTime
public double macBcnOtherRxTime
public byte macBeaconOrder2
public byte macBeaconOrder3
public sidnet.stack.std.mac.ieee802_15_4.DEVICELINK deviceLink1
public sidnet.stack.std.mac.ieee802_15_4.DEVICELINK deviceLink2
public TimerInterface802_15_4 bcnRxT
public MacMessage_802_15_4 txAck
public byte backoffStatus
public Phy802_15_4 phyEntity
Constructor Detail |
---|
public Mac802_15_4Impl(MacAddress addr, RadioInfo.RadioInfoShared radioInfo, EnergyManagement energyManagement, Node myNode)
public Mac802_15_4Impl(MacAddress addr, RadioInfo.RadioInfoShared radioInfo, EnergyManagement energyManagement, Node myNode, sidnet.stack.std.mac.ieee802_15_4.MAC_PIB mp)
Method Detail |
---|
public void setNetEntity(NetInterface net, byte netid)
net
- network entitynetid
- network interface numberpublic int get_sfSpec2_sd() throws JistAPI.Continuation
get_sfSpec2_sd
in interface Mac802_15_4
JistAPI.Continuation
public byte get_sfSpec2_FinCAP() throws JistAPI.Continuation
get_sfSpec2_FinCAP
in interface Mac802_15_4
JistAPI.Continuation
public byte getMacBeaconOrder2() throws JistAPI.Continuation
getMacBeaconOrder2
in interface Mac802_15_4
JistAPI.Continuation
public double getMacBcnRxTime() throws JistAPI.Continuation
getMacBcnRxTime
in interface Mac802_15_4
JistAPI.Continuation
public byte getMpibMacBeaconOrder() throws JistAPI.Continuation
getMpibMacBeaconOrder
in interface Mac802_15_4
JistAPI.Continuation
public boolean sscs_neverAsso() throws JistAPI.Continuation
sscs_neverAsso
in interface Mac802_15_4
JistAPI.Continuation
public void startDevice()
startDevice
in interface Mac802_15_4
public Mac802_15_4 getProxy()
public void setPhyEntity(Phy802_15_4 phy)
phy
- physical entitypublic void reset()
public void resetTimers()
public void csmaca_backoffHandler()
csmaca_backoffHandler
in interface Mac802_15_4
public void csmaca_bcnOtherHandler()
csmaca_bcnOtherHandler
in interface Mac802_15_4
public void csmaca_deferCCAHandler()
csmaca_deferCCAHandler
in interface Mac802_15_4
public void init(boolean reset)
public void PD_DATA_confirm(PHYenum status)
PD_DATA_confirm
in interface Mac802_15_4
public void PLME_CCA_confirm(PHYenum status)
PLME_CCA_confirm
in interface Mac802_15_4
public void PLME_ED_confirm(PHYenum status, byte EnergyLevel)
PLME_ED_confirm
in interface Mac802_15_4
public void PLME_GET_confirm(PHYenum status, PPIBAenum PIBAttribute, PHY_PIB PIBAttributeValue)
PLME_GET_confirm
in interface Mac802_15_4
public void PLME_SET_TRX_STATE_confirm(PHYenum status)
PLME_SET_TRX_STATE_confirm
in interface Mac802_15_4
public void PLME_SET_confirm(PHYenum status, PPIBAenum PIBAttribute)
PLME_SET_confirm
in interface Mac802_15_4
public void MCPS_DATA_request(byte SrcAddrMode, int SrcPANId, int SrcAddr, byte DstAddrMode, int DstPANId, int DstAddr, byte msduLength, MacMessage_802_15_4 msdu, byte msduHandle, byte TxOptions)
public void MCPS_DATA_indication(byte SrcAddrMode, int SrcPANId, int SrcAddr, byte DstAddrMode, int DstPANId, int DstAddr, byte msduLength, MacMessage_802_15_4 msdu, byte mpduLinkQuality, boolean SecurityUse, byte ACLEntry)
public void sendUp(MacMessage_802_15_4 msg)
public void MCPS_PURGE_request(byte msduHandle)
public void MLME_ASSOCIATE_request(byte LogicalChannel, byte CoordAddrMode, int CoordPANId, int CoordAddress, byte CapabilityInformation, boolean SecurityEnable)
public void MLME_ASSOCIATE_response(int DeviceAddress, int AssocShortAddress, MACenum status, boolean SecurityEnable)
public void MLME_DISASSOCIATE_request(IE3ADDR DeviceAddress, byte DisassociateReason, boolean SecurityEnable)
public void MLME_DISASSOCIATE_indication(int DeviceAddress, byte DisassociateReason, boolean SecurityUse, byte ACLEntry)
public void MLME_GET_request(MPIBAenum PIBAttribute)
public void MLME_GTS_request(byte GTSCharacteristics, boolean SecurityEnable)
public void MLME_GTS_confirm(byte GTSCharacteristics, MACenum status)
public void MLME_GTS_indication(int DevAddress, byte GTSCharacteristics, boolean SecurityUse, byte ACLEntry)
public void MLME_ORPHAN_response(int OrphanAddress, int ShortAddress, boolean AssociatedMember, boolean SecurityEnable)
public void MLME_RESET_request(boolean SetDefaultPIB)
public void MLME_RX_ENABLE_request(boolean DeferPermit, int RxOnTime, int RxOnDuration)
public void MLME_SCAN_request(byte ScanType, int ScanChannels, byte ScanDuration)
public void MLME_SET_request(MPIBAenum PIBAttribute, sidnet.stack.std.mac.ieee802_15_4.MAC_PIB PIBAttributeValue)
public void MLME_START_request(int PANId, byte LogicalChannel, byte BeaconOrder, byte SuperframeOrder, boolean PANCoordinator, boolean BatteryLifeExtension, boolean CoordRealignment, boolean SecurityEnable)
public void MLME_SYNC_request(byte LogicalChannel, boolean TrackBeacon)
public void MLME_POLL_request(byte CoordAddrMode, int CoordPANId, int CoordAddress, boolean SecurityEnable)
public int hdr_dst(char[] hdr, int dst)
public int hdr_src(char[] hdr, int src)
public int hdr_type(char[] hdr, int type)
public void setRadioMode(byte mode)
MacInterface
setRadioMode
in interface MacInterface
mode
- new radio modepublic void send(Message msg, MacAddress nextHop)
MacInterface
send
in interface MacInterface
msg
- packet to sendnextHop
- destination macpublic void peek(Message msg)
MacInterface
peek
in interface MacInterface
msg
- packet currently in flightpublic void receive(Message m)
MacInterface
receive
in interface MacInterface
receive
in interface Mac802_15_4
m
- packet receivedpublic void recv(MacMessage_802_15_4 p)
public void drop(MacMessage_802_15_4 p, java.lang.String reason)
drop
in interface Mac802_15_4
public void recvBeacon(MacMessage_802_15_4 p)
public void recvAck(MacMessage_802_15_4 p)
public void recvCommand(MacMessage_802_15_4 p)
public void recvData(MacMessage_802_15_4 p)
public boolean toParent(MacMessage_802_15_4 p)
public double locateBoundary(boolean parent, double wtime)
public void txOverHandler()
txOverHandler
in interface Mac802_15_4
public void txHandler()
txHandler
in interface Mac802_15_4
public void extractHandler()
extractHandler
in interface Mac802_15_4
public void assoRspWaitHandler()
assoRspWaitHandler
in interface Mac802_15_4
public void dataWaitHandler()
dataWaitHandler
in interface Mac802_15_4
public void rxEnableHandler()
rxEnableHandler
in interface Mac802_15_4
public void scanHandler()
scanHandler
in interface Mac802_15_4
public void beaconTxHandler(boolean forTX)
beaconTxHandler
in interface Mac802_15_4
public void beaconRxHandler()
beaconRxHandler
in interface Mac802_15_4
public void beaconSearchHandler()
beaconSearchHandler
in interface Mac802_15_4
public void isPanCoor(boolean isPC)
public void csmacaCallBack(PHYenum status)
public int getBattLifeExtSlotNum()
public double getCAP(boolean small)
public double getCAPbyType(int type)
public boolean canProceedWOcsmaca(MacMessage_802_15_4 p)
public int hdr_dst(hdr_mac hdr, int dst)
public int p802_15_4hdr_dst(hdr_mac hdr, int dst)
public int hdr_src(hdr_mac hdr, int src)
public int p802_15_4hdr_src(hdr_mac hdr, int src)
public int hdr_type(hdr_mac hdr, int type)
public int p802_15_4hdr_type(hdr_mac hdr, int type)
public void txBcnCmdDataHandler()
txBcnCmdDataHandler
in interface Mac802_15_4
public void IFSHandler()
IFSHandler
in interface Mac802_15_4
public void backoffBoundHandler()
backoffBoundHandler
in interface Mac802_15_4
public void plme_set_trx_state_request(PHYenum state)
public void resetTRX()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |