| 
 | |||||||||
| 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.AckAn 802_11 Acknowlege packet. | 
| static class | MacMessage.CtsAn 802_11 Clear-To-Send packet. | 
| static class | MacMessage.DataAn 802_11 Data packet. | 
| static class | MacMessage.RtsAn 802_11 Request-To-Send packet. | 
| Field Summary | |
|---|---|
| private  boolean | retrypacket retry bit. | 
| private  byte | typepacket type. | 
| static byte | TYPE_ACKACK packet constant: type = 01, subtype = 1101. | 
| static byte | TYPE_CTSCTS packet constant: type = 01, subtype = 1100. | 
| static byte | TYPE_DATADATA packet constant: type = 10, subtype = 0000. | 
| static byte | TYPE_RTSRTS 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 | ||||||||