DRCL J-Sim API

drcl.inet.mac
Class Mac_802_11_Beacon_Frame

java.lang.Object
  extended bydrcl.net.Packet
      extended bydrcl.inet.mac.Mac_802_11_Packet
          extended bydrcl.inet.mac.Mac_802_11_Beacon_Frame
All Implemented Interfaces:
java.lang.Cloneable, Countable, ObjectCloneable, PacketWrapper

public class Mac_802_11_Beacon_Frame
extends Mac_802_11_Packet

This class defines the IEEE802.11 Beacon frame structure.

Author:
Rong Zheng
See Also:
Mac_802_11, Mac_802_11_Packet

Field Summary
static int Mac_802_11_Beacon_Frame_Header_Length
           
 
Fields inherited from class drcl.inet.mac.Mac_802_11_Packet
EHTER_FCS_LEN, ETHER_ADDR_LEN, ETHER_TYPE_LEN
 
Fields inherited from class drcl.net.Packet
body, headerSize, id, size
 
Constructor Summary
Mac_802_11_Beacon_Frame(Mac_802_11_Frame_Control fc_, int duration_, long sa_, int fcs_, int hsize_, long bb_ts_)
          Creates a Mac_802_11_Beacon_Frame
 
Method Summary
 java.lang.String _toString(java.lang.String separator_)
          Prints the packet header.
 java.lang.Object clone()
          Returns a clone of this object.
 long getSa()
          Get the source MAC address of the beacon frame
 long getTSF()
          Get the TSF timer of the beacon frame
 void setSa(long sa_)
          Set the source MAC address of the beacon frame
 void setTSF(long timer)
          Set the TSF timer of the beacon frame
 
Methods inherited from class drcl.inet.mac.Mac_802_11_Packet
getDuration, getFc, getFcs, getName, isForcedError, set_fc_flags, setDuration, setFc, setFcs, setForcedError
 
Methods inherited from class drcl.net.Packet
equals, getBody, getByteCount, getHeaderSize, getNumberCount, getPacketCount, getPacketSize, getPacketType, getSize, getSizeCount, getTimestamp, isByteCountSupported, isPacketCountSupported, isTimestampSupported, setBody, setBody, setHeaderSize, setPacketSize, setSize, setTimestamp, toString, toString, wraps
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Mac_802_11_Beacon_Frame_Header_Length

public static final int Mac_802_11_Beacon_Frame_Header_Length
See Also:
Constant Field Values
Constructor Detail

Mac_802_11_Beacon_Frame

public Mac_802_11_Beacon_Frame(Mac_802_11_Frame_Control fc_,
                               int duration_,
                               long sa_,
                               int fcs_,
                               int hsize_,
                               long bb_ts_)
Creates a Mac_802_11_Beacon_Frame

Parameters:
fc_ - - MAC frame control
duration_ - - duration
sa_ - - source MAC address
fcs_ - - frame check sequence
bb_ts_ - - time stamp
Method Detail

setSa

public void setSa(long sa_)
Set the source MAC address of the beacon frame


getSa

public long getSa()
Get the source MAC address of the beacon frame


setTSF

public void setTSF(long timer)
Set the TSF timer of the beacon frame


getTSF

public long getTSF()
Get the TSF timer of the beacon frame


clone

public java.lang.Object clone()
Description copied from interface: ObjectCloneable
Returns a clone of this object.

Specified by:
clone in interface ObjectCloneable
Specified by:
clone in class Packet

_toString

public java.lang.String _toString(java.lang.String separator_)
Description copied from class: Packet
Prints the packet header.

Overrides:
_toString in class Mac_802_11_Packet

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~