Class DataPump

  • All Implemented Interfaces:
    java.lang.Cloneable, Actor, Executable, FiringsRecordable, Initializable, TypedActor, Changeable, Debuggable, DebugListener, Derivable, Instantiable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    public class DataPump
    extends MACActorBase
    This actor works in the Transmission block in IEEE 802.11 Mac. For every TxRequest from the Protocol_Control block, this actor sends a PhyTxStart request to the physical layer. Upon receiving the PhyTxStart confirmation, it sends data to the physical layer. After the data has been sent, it sends PhyTxEnd request to the physical layer and sends TxConfirm to the source of the original TxRequest after receiving PhyTxEnd confirmation from the physical layer.

    Both TxCoordination and RxCoordination in the Protocol_Control can send TxRequest and require TxConfirm. This actor uses a pair of input and output ports to tell the source of the TxRequest and the destination of the TxConfirm.

    Since:
    Ptolemy II 4.0
    Version:
    DataPump.java,v 1.18 2004/04/22 19:46:18 ellen_zh Exp
    Author:
    Yang Zhao, Charlie Zhong and Xiaojun Liu
    Pt.AcceptedRating:
    Red (pjb2e)
    Pt.ProposedRating:
    Red (ellen_zh)
    • Field Detail

      • TXTXRequest

        public TypedIOPort TXTXRequest
        The input port for transmission request from the Protocol_Control Tx_Coordination block.
      • RXTXRequest

        public TypedIOPort RXTXRequest
        The input port for transmission request from the Protocol_Control Rx_Coordination block.
      • fromReception

        public TypedIOPort fromReception
        The input port for the channel status massage from the reception block.
      • PHYLayerConfirm

        public TypedIOPort PHYLayerConfirm
        The input port for transmission conformation from the physical layer, including transmission start confirmation, transmitting data confirmation and transmission end confirmation.
      • TXTXConfirm

        public TypedIOPort TXTXConfirm
        The output port for transmission confirmation to the Protocol_Control Tx_Coordination block.
      • RXTXConfirm

        public TypedIOPort RXTXConfirm
        The output port for transmission confirmation to the Protocol_Control Rx_Coordination block.
      • toPHYLayer

        public TypedIOPort toPHYLayer
        The output port that send transmission request to the physical layer, including transmission start request, transmitting data request and transmission end request.
      • toBackoff

        public TypedIOPort toBackoff
        The output port sending the the channel status to the Backoff block.
    • Constructor Detail

      • DataPump

        public DataPump​(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.