|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.swans.mac.MacMessage
public abstract class MacMessage
Defines the various message used by the Mac entity.
| Nested Class Summary | |
|---|---|
static class |
MacMessage.Ack
An 802_11 Acknowlege packet. |
static class |
MacMessage.Cts
An 802_11 Clear-To-Send packet. |
static class |
MacMessage.Data
An 802_11 Data packet. |
static class |
MacMessage.Rts
An 802_11 Request-To-Send packet. |
| Field Summary | |
|---|---|
private boolean |
retry
packet retry bit. |
private byte |
type
packet type. |
static byte |
TYPE_ACK
ACK packet constant: type = 01, subtype = 1101. |
static byte |
TYPE_CTS
CTS packet constant: type = 01, subtype = 1100. |
static byte |
TYPE_DATA
DATA packet constant: type = 10, subtype = 0000. |
static byte |
TYPE_RTS
RTS packet constant: type = 01, subtype = 1011. |
| Fields inherited from interface jist.swans.misc.Message |
|---|
NULL |
| Constructor Summary | |
|---|---|
protected |
MacMessage(byte type,
boolean retry)
Create a mac packet. |
| Method Summary | |
|---|---|
abstract MacAddress |
getDst()
Return packet destination address. |
abstract int |
getDuration()
Return packet transmission duration. |
boolean |
getRetry()
Return retry bit. |
byte |
getType()
Return packet type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jist.swans.misc.Message |
|---|
getBytes, getSize |
| Field Detail |
|---|
public static final byte TYPE_RTS
public static final byte TYPE_CTS
public static final byte TYPE_ACK
public static final byte TYPE_DATA
private byte type
private boolean retry
| Constructor Detail |
|---|
protected MacMessage(byte type,
boolean retry)
type - packet typeretry - packet retry bit| Method Detail |
|---|
public byte getType()
public boolean getRetry()
public abstract MacAddress getDst()
public abstract int getDuration()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||