|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjist.swans.mac.MacLoop
public class MacLoop
A loopback mac implementation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jist.swans.mac.MacInterface |
|---|
MacInterface.Mac802_11 |
| Constructor Summary | |
|---|---|
MacLoop()
Create new loopback interface. |
|
| 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 |
setRadioMode(byte mode)
Update mac regarding new mode of its radio. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MacLoop()
| Method Detail |
|---|
public void setNetEntity(NetInterface net,
byte netid)
net - network entitynetid - network interface numberpublic MacInterface getProxy()
public void peek(Message msg)
peek in interface MacInterfacemsg - packet currently in flightpublic void setRadioMode(byte mode)
setRadioMode in interface MacInterfacemode - new radio mode
public void send(Message msg,
MacAddress nextHop)
send in interface MacInterfacemsg - packet to sendnextHop - destination macpublic void receive(Message msg)
receive in interface MacInterfacemsg - packet received
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||