|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.swans.mac.MacDumb
public class MacDumb
A dumb, pass-through mac implementation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface jist.swans.mac.MacInterface |
---|
MacInterface.Mac802_11 |
Constructor Summary | |
---|---|
MacDumb(MacAddress addr,
RadioInfo radioInfo)
Create a new "dumb" mac entity. |
Method Summary | |
---|---|
MacInterface |
getProxy()
Return self-referencing proxy entity. |
void |
peek(Message msg)
Radio has locked onto a packet signal; mac may have a peek. |
void |
receive(Message msg)
Radio has received a packet for mac to process. |
void |
send(Message msg,
MacAddress nextHop)
Network layer would like to send the following packet. |
void |
setNetEntity(NetInterface net,
byte netid)
Hook up with the network entity. |
void |
setPromiscuous(boolean promisc)
Set promiscuous mode (whether to pass all packets through). |
void |
setRadioEntity(RadioInterface radio)
Hook up with the radio entity. |
void |
setRadioMode(byte mode)
Update mac regarding new mode of its radio. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MacDumb(MacAddress addr, RadioInfo radioInfo)
addr
- local mac addressradioInfo
- radio informationMethod Detail |
---|
public void setPromiscuous(boolean promisc)
promisc
- promiscuous flagpublic void setNetEntity(NetInterface net, byte netid)
net
- network entitynetid
- network interface numberpublic void setRadioEntity(RadioInterface radio)
radio
- radio entitypublic MacInterface getProxy()
public java.lang.String toString()
toString
in class java.lang.Object
public void setRadioMode(byte mode)
setRadioMode
in interface MacInterface
mode
- new radio modepublic void peek(Message msg)
peek
in interface MacInterface
msg
- packet currently in flightpublic void receive(Message msg)
receive
in interface MacInterface
msg
- packet receivedpublic void send(Message msg, MacAddress nextHop)
send
in interface MacInterface
msg
- packet to sendnextHop
- destination mac
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |