#include <uw-csma-aloha-trigger-sink.h>
 | 
| enum   | UW_CS_ALOHA_TRIG_SINK_STATUS {  
  UW_CS_ALOHA_TRIG_SINK_STATE_IDLE = 1
, UW_CS_ALOHA_TRIG_SINK_STATE_NOT_SET
, UW_CS_ALOHA_TRIG_SINK_STATE_TX_TRIGGER
, UW_CS_ALOHA_TRIG_SINK_STATE_ENABLE_RX
,  
  UW_CS_ALOHA_TRIG_SINK_STATE_DISABLE_RX
, UW_CS_ALOHA_TRIG_SINK_STATE_DATA_RX
 
 } | 
|   | 
| enum   | UW_CS_ALOHA_TRIG_SINK_REASON_STATUS {  
  UW_CS_ALOHA_TRIG_SINK_REASON_DATA_RX = 1
, UW_CS_ALOHA_TRIG_SINK_REASON_NOT_SET
, UW_CS_ALOHA_TRIG_SINK_REASON_START_RX
, UW_CS_ALOHA_TRIG_SINK_REASON_PKT_NOT_FOR_ME
,  
  UW_CS_ALOHA_TRIG_SINK_REASON_PKT_ERROR
, UW_CS_ALOHA_TRIG_SINK_REASON_TX_TRIGGER
 
 } | 
|   | 
| enum   | UW_CS_ALOHA_TRIG_SINK_TIMER_STATUS { UW_CS_ALOHA_TRIG_SINK_IDLE = 1
, UW_CS_ALOHA_TRIG_SINK_RUNNING
, UW_CS_ALOHA_TRIG_SINK_FROZEN
, UW_CS_ALOHA_TRIG_SINK_EXPIRED
 } | 
|   | 
Class that describes a UwCsmaAloha_Trigger_SINK module. 
Definition at line 61 of file uw-csma-aloha-trigger-sink.h.
 
◆ UW_CS_ALOHA_TRIG_SINK_REASON_STATUS
| Enumerator | 
|---|
| UW_CS_ALOHA_TRIG_SINK_REASON_DATA_RX  |  | 
| UW_CS_ALOHA_TRIG_SINK_REASON_NOT_SET  |  | 
| UW_CS_ALOHA_TRIG_SINK_REASON_START_RX  |  | 
| UW_CS_ALOHA_TRIG_SINK_REASON_PKT_NOT_FOR_ME  |  | 
| UW_CS_ALOHA_TRIG_SINK_REASON_PKT_ERROR  |  | 
| UW_CS_ALOHA_TRIG_SINK_REASON_TX_TRIGGER  |  | 
Definition at line 104 of file uw-csma-aloha-trigger-sink.h.
 
 
◆ UW_CS_ALOHA_TRIG_SINK_STATUS
< Variable that rapresent the status of the protocol machine state 
| Enumerator | 
|---|
| UW_CS_ALOHA_TRIG_SINK_STATE_IDLE  |  | 
| UW_CS_ALOHA_TRIG_SINK_STATE_NOT_SET  |  | 
| UW_CS_ALOHA_TRIG_SINK_STATE_TX_TRIGGER  |  | 
| UW_CS_ALOHA_TRIG_SINK_STATE_ENABLE_RX  |  | 
| UW_CS_ALOHA_TRIG_SINK_STATE_DISABLE_RX  |  | 
| UW_CS_ALOHA_TRIG_SINK_STATE_DATA_RX  |  | 
Definition at line 94 of file uw-csma-aloha-trigger-sink.h.
 
 
◆ UW_CS_ALOHA_TRIG_SINK_TIMER_STATUS
| Enumerator | 
|---|
| UW_CS_ALOHA_TRIG_SINK_IDLE  |  | 
| UW_CS_ALOHA_TRIG_SINK_RUNNING  |  | 
| UW_CS_ALOHA_TRIG_SINK_FROZEN  |  | 
| UW_CS_ALOHA_TRIG_SINK_EXPIRED  |  | 
Definition at line 114 of file uw-csma-aloha-trigger-sink.h.
 
 
◆ UwCsmaAloha_Trigger_SINK()
      
        
          | UwCsmaAloha_Trigger_SINK::UwCsmaAloha_Trigger_SINK  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ ~UwCsmaAloha_Trigger_SINK()
  
  
      
        
          | UwCsmaAloha_Trigger_SINK::~UwCsmaAloha_Trigger_SINK  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ command()
  
  
      
        
          | int UwCsmaAloha_Trigger_SINK::command  | 
          ( | 
          int  | 
          argc,  | 
         
        
           | 
           | 
          const char *const *  | 
          argv  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
virtual   | 
  
 
TCL command interpreter. 
It implements the following OTcl methods:
- Parameters
 - 
  
    | argc | Number of arguments in argv.  | 
    | argv | Array of strings which are the command parameters (Note that argv[0] is the name of the object).  | 
  
   
- Returns
 - TCL_OK or TCL_ERROR whether the command has been dispatched successfully or not. 
 
Definition at line 92 of file uw-csma-aloha-trigger-sink.cpp.
 
 
◆ crLayCommand()
  
  
      
        
          | int UwCsmaAloha_Trigger_SINK::crLayCommand  | 
          ( | 
          ClMessage *  | 
          m | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
Cross-Layer messages interpreter. 
- Parameters
 - 
  
    | ClMessage* | an instance of ClMessage that represent the message received  | 
  
   
- Returns
 - 0 if successful. 
 
Definition at line 108 of file uw-csma-aloha-trigger-sink.cpp.
 
 
◆ getTriggerMsgSent()
  
  
      
        
          | int UwCsmaAloha_Trigger_SINK::getTriggerMsgSent  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotected   | 
  
 
Return the number of TRIGGER packets sent over the simulation. 
- Returns
 - number of trigger packets over the simulation 
 
Definition at line 419 of file uw-csma-aloha-trigger-sink.h.
 
 
◆ incrTRIGGERPacketTx()
  
  
      
        
          | void UwCsmaAloha_Trigger_SINK::incrTRIGGERPacketTx  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotected   | 
  
 
 
◆ incrUpperDataRx()
  
  
      
        
          | virtual void UwCsmaAloha_Trigger_SINK::incrUpperDataRx  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotectedvirtual   | 
  
 
 
◆ initPkt()
  
  
      
        
          | void UwCsmaAloha_Trigger_SINK::initPkt  | 
          ( | 
          Packet *  | 
          p,  | 
         
        
           | 
           | 
          int  | 
          dest_addr = 0  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protectedvirtual   | 
  
 
Init the headers of the packet in transmission. 
- Parameters
 - 
  
    | Packet* | packet to transmit  | 
    | dest_adrr | destination address of the packet  | 
  
   
Definition at line 146 of file uw-csma-aloha-trigger-sink.cpp.
 
 
◆ Mac2PhyStartTx()
  
  
      
        
          | void UwCsmaAloha_Trigger_SINK::Mac2PhyStartTx  | 
          ( | 
          Packet *  | 
          p | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ Phy2MacEndRx()
  
  
      
        
          | void UwCsmaAloha_Trigger_SINK::Phy2MacEndRx  | 
          ( | 
          Packet *  | 
          p | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ Phy2MacEndTx()
  
  
      
        
          | void UwCsmaAloha_Trigger_SINK::Phy2MacEndTx  | 
          ( | 
          const Packet *  | 
          p | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
Method called when the PHY layers finishes to transmit packet. 
- Parameters
 - 
  
    | Packet* | pointer to the Packet just transmitted  | 
  
   
Definition at line 163 of file uw-csma-aloha-trigger-sink.cpp.
 
 
◆ Phy2MacStartRx()
  
  
      
        
          | void UwCsmaAloha_Trigger_SINK::Phy2MacStartRx  | 
          ( | 
          const Packet *  | 
          p | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
Method called when the PHY layer begins to receive a packet. 
- Parameters
 - 
  
    | Packet* | pointer to the packet in reception  | 
  
   
Definition at line 173 of file uw-csma-aloha-trigger-sink.cpp.
 
 
◆ recvFromUpperLayers()
  
  
      
        
          | void UwCsmaAloha_Trigger_SINK::recvFromUpperLayers  | 
          ( | 
          Packet *  | 
          p | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ refreshReason()
◆ refreshState()
Refresh the state of the protocol. 
- Parameters
 - 
  
    | UW_CS_ALOHA_TRIG_SINK_STATUS | next state of the protocol  | 
  
   
Definition at line 400 of file uw-csma-aloha-trigger-sink.h.
 
 
◆ stateDisableRx()
  
  
      
        
          | void UwCsmaAloha_Trigger_SINK::stateDisableRx  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ stateEnableRx()
  
  
      
        
          | void UwCsmaAloha_Trigger_SINK::stateEnableRx  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ stateIdle()
  
  
      
        
          | void UwCsmaAloha_Trigger_SINK::stateIdle  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ stateRxData()
  
  
      
        
          | void UwCsmaAloha_Trigger_SINK::stateRxData  | 
          ( | 
          Packet *  | 
          p | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ stateRxPacketNotForMe()
  
  
      
        
          | void UwCsmaAloha_Trigger_SINK::stateRxPacketNotForMe  | 
          ( | 
          Packet *  | 
          p | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ stateTxTRIGGER()
  
  
      
        
          | void UwCsmaAloha_Trigger_SINK::stateTxTRIGGER  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ txTRIGGER()
  
  
      
        
          | void UwCsmaAloha_Trigger_SINK::txTRIGGER  | 
          ( | 
          Packet *  | 
          p | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ waitForUser()
  
  
      
        
          | void UwCsmaAloha_Trigger_SINK::waitForUser  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ buffer_pkts
  
  
      
        
          | int UwCsmaAloha_Trigger_SINK::buffer_pkts | 
         
       
   | 
  
protected   | 
  
 
 
◆ curr_state
◆ last_reason
◆ prev_state
◆ receive_timer
◆ receiving_state_active
  
  
      
        
          | bool UwCsmaAloha_Trigger_SINK::receiving_state_active | 
         
       
   | 
  
protected   | 
  
 
 
◆ trigger_pkts_tx
  
  
      
        
          | int UwCsmaAloha_Trigger_SINK::trigger_pkts_tx | 
         
       
   | 
  
protected   | 
  
 
 
◆ TRIGGER_size
  
  
      
        
          | int UwCsmaAloha_Trigger_SINK::TRIGGER_size | 
         
       
   | 
  
protected   | 
  
 
 
◆ tx_timer_duration
  
  
      
        
          | double UwCsmaAloha_Trigger_SINK::tx_timer_duration | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following files: