Class MACActorBase

    • Field Detail

      • aSifsTime

        public Parameter aSifsTime
        The parameter for SIFS (Short Inter Frame Space). This time is used to separate transmissions belong to a single dialog. This Value is fixed per PHY and is calculated base on the time that takes for the transmitting part to switch back to receive mode.
      • aPreambleLength

        public Parameter aPreambleLength
        The size of the Preamble header in a frame. The Preamble header contains synchronization information and timing information for the frame.
      • aPlcpHeaderLength

        public Parameter aPlcpHeaderLength
        The size of the PLCP header in a frame. The PLCP header contains logical information for the physical layer to decode the frame.
      • aRxTxTurnaroundTime

        public Parameter aRxTxTurnaroundTime
        Time needed for a transceiver to go from receiving to transmitting
      • sAckCtsLng

        public Parameter sAckCtsLng
        The size of a CTS/Ack message
      • mBrate

        public Parameter mBrate
        The radio data rate in the unit of Mbps
      • aSlotTime

        public Parameter aSlotTime
        The time unit for the backoff time
      • aRxRfDelay

        public Parameter aRxRfDelay
        The nominal time between the end of a symbol at the air interface to the issuance of a PMD-DATA.indicate to the PLCP.
      • aRxPlcpDelay

        public Parameter aRxPlcpDelay
        The nominal time that the PLCP uses to deliver a bit from the PMD receive path to the MAC.
      • aCWmin

        public Parameter aCWmin
        The minimum size of the contention window, in units of aSlotTime.
      • aCWmax

        public Parameter aCWmax
        The maximum size of the contention window, in units of aSlotTime.
      • dot11ShortRetryLimit

        public Parameter dot11ShortRetryLimit
        The maximum number of retransmissions for MPDUs
      • dot11LongRetryLimit

        public Parameter dot11LongRetryLimit
        The maximum number of retransmissions for RTS
      • dotllRTSThreshold

        public Parameter dotllRTSThreshold
        The threshold for the length of a MPDU, below which a RTS is not necessary.
      • _aSifsTime

        protected int _aSifsTime
      • _aPreambleLength

        protected int _aPreambleLength
      • _aPlcpHeaderLength

        protected int _aPlcpHeaderLength
      • _aRxTxTurnaroundTime

        protected int _aRxTxTurnaroundTime
      • _sAckCtsLng

        protected int _sAckCtsLng
      • _mBrate

        protected int _mBrate
      • _aSlotTime

        protected int _aSlotTime
      • _aRxRfDelay

        protected int _aRxRfDelay
      • _aRxPlcpDelay

        protected int _aRxPlcpDelay
      • _aCWmin

        protected int _aCWmin
      • _aCWmax

        protected int _aCWmax
      • _dot11ShortRetryLimit

        protected int _dot11ShortRetryLimit
      • _dot11LongRetryLimit

        protected int _dot11LongRetryLimit
      • _dotllRTSThreshold

        protected int _dotllRTSThreshold
      • _tNavEnd

        protected Attribute _tNavEnd
        The time that NAV ends or reservation ends.
      • _mBkIP

        protected Attribute _mBkIP
        The flag indicating whether backoff is in progress.
      • TxStartMsgFields

        protected static final java.lang.String[] TxStartMsgFields
      • TxDataMsgFields

        protected static final java.lang.String[] TxDataMsgFields
      • RtsTimeoutMsgFields

        protected static final java.lang.String[] RtsTimeoutMsgFields
      • RxMpduMsgFields

        protected static final java.lang.String[] RxMpduMsgFields
      • UseIfsMsgFields

        protected static final java.lang.String[] UseIfsMsgFields
      • RxIndicateMessageFields

        protected static final java.lang.String[] RxIndicateMessageFields
      • NeedAckMessageFields

        protected static final java.lang.String[] NeedAckMessageFields
      • SetNavMessageFields

        protected static final java.lang.String[] SetNavMessageFields
      • CSMsgFields

        protected static final java.lang.String[] CSMsgFields
      • TxRequestMsgFields

        protected static final java.lang.String[] TxRequestMsgFields
      • TxConfirmMsgFields

        protected static final java.lang.String[] TxConfirmMsgFields
      • BackoffDoneMsgFields

        protected static final java.lang.String[] BackoffDoneMsgFields
      • getBackoffMsgFields

        protected static final java.lang.String[] getBackoffMsgFields
      • GotCtsMsgFields

        protected static final java.lang.String[] GotCtsMsgFields
    • Constructor Detail

      • MACActorBase

        public MACActorBase​(CompositeEntity container,
                            java.lang.String name)
                     throws IllegalActionException,
                            NameDuplicationException
        Construct an actor with the specified name and container. The container argument must not be null, or a NullPointerException will be thrown. If the name argument is null, then the name is set to the empty string. This constructor write-synchronizes on the workspace.
        Parameters:
        container - The container.
        name - The name of the actor.
        Throws:
        IllegalActionException - If the container is incompatible with this actor.
        NameDuplicationException - If the name coincides with an actor already in the container.
    • Method Detail

      • attributeChanged

        public void attributeChanged​(Attribute attribute)
                              throws IllegalActionException
        If the specified attribute is changed, check that a positive number is given. Otherwise, defer to the base class.
        Overrides:
        attributeChanged in class NamedObj
        Parameters:
        attribute - The attribute that changed.
        Throws:
        IllegalActionException - If the change is not acceptable to this container.
      • getID

        protected int getID()
        Check whether this has a id attribute. If yes, return the value of it; if no, return the default value -2.
        Returns:
        return the value of the id attribute of -2 if no such an attribute.