|
DESERT 4.0.0
|
#include <uwUFetch_NODE.h>


Classes | |
| class | uwUFetch_BackOffTimer |
| class | uwUFetch_BEACON_timer |
| class | uwUFetch_CBeacon_timer |
| class | uwUFetch_CTS_timer |
| class | uwUFetch_DATA_BEFORE_TX_timer |
| class | uwUFetch_DATA_timer |
| class | uwUFetch_NODE_timer |
| class | uwUFetch_POLL_timer |
| class | uwUFetch_PROBE_timer |
| class | uwUFetch_TRIGGER_timer |
Public Member Functions | |
| uwUFetch_NODE () | |
| virtual | ~uwUFetch_NODE () |
| virtual int | command (int argc, const char *const *argv) |
| virtual int | crLayCommand (ClMessage *m) |
Static Protected Attributes | |
| static bool | initialized = false |
| static std::map< UWUFETCH_NODE_STATUS, std::string > | statusInfo |
| static std::map< UWUFETCH_NODE_STATUS_CHANGE, std::string > | statusChange |
| static std::map< UWUFETCH_NODE_PACKET_TYPE, std::string > | packetType |
| static std::map< UWUFETCH_TIMER_STATUS, std::string > | statusTimer |
|
protected |
|
protected |
< States in which SN or HN may be during Its execution
|
protected |
|
protected |
| uwUFetch_NODE::uwUFetch_NODE | ( | ) |
Constructor of uwUFetch_NODE class
Constructor of the class uwUFetch_NODE
References debugMio_, MAX_ALLOWED_CBEACON_TX, MAX_PAYLOAD, MAX_PCK_HN_WANT_RX_FROM_NODE, MAX_POLLED_NODE, MAXIMUM_BUFFER_DATA_PCK_NODE, MODE_BURST_DATA, MODE_COMM_HN_AUV, N_RUN, PRINT_TRANSITIONS_INT, T_CTS, T_GUARD, T_MAX_BACKOFF_PROBE, T_MIN_BACKOFF_PROBE, T_POLL, T_PROBE, T_START_PROCEDURE_HN_NODE, TIME_BETWEEN_2_TX_DATA_HN_AUV, and TIME_BETWEEN_2_TX_DATA_NODE_HN.
|
virtual |
Destructor of uwUFetch_NODE class
|
protectedvirtual |
Handle the
References BCKTOExpired_HN(), debugMio_, isHeadNode(), out_file_logging, and state_PROBE_tx().

|
protectedvirtual |
Backoff timeout is expired. After the expiration HN can pass the successive DATA packet that will be transmitted to Its physical layer and then forwarded to the AUV. In this case the communication between HN and AUV take place with RTS and CTS packets
References BCKTOExpired_HN_without(), debugMio_, out_file_logging, state_RTS_tx(), and typeCommunication().
Referenced by BCKTOExpired().

|
protectedvirtual |
Backoff timeout is expired. After the expiration HN can pass the successive DATA packet that will be transmitted to Its physical layer and then forwarded to the AUV. In this case the communication between HN and AUV take place without RTS and CTS packets
References debugMio_, out_file_logging, and state_DATA_HN_first_tx().
Referenced by BCKTOExpired_HN().

|
protectedvirtual |
SN received a BEACON packet. Extract all information contained into It.
References bck_before_tx_probe, BCK_timer_probe, choiceBackOffTimer(), curr_BEACON_NODE_pck_rx, debugMio_, mac_addr_HN_in_beacon, num_cbeacon_node_rx, hdr_BEACON_UFETCH::num_Max_CBEACON_tx_by_HN(), out_file_logging, print_transitions, printStateInfo(), refreshState(), rxBEACONEnabled, uwUFetch_NODE::uwUFetch_NODE_timer::schedule(), hdr_BEACON_UFETCH::t_max_bc(), T_max_bck_probe_node, hdr_BEACON_UFETCH::t_min_bc(), T_min_bck_probe_node, and UWUFETCH_NODE_STATUS_BEACON_RECEIVE.
Referenced by Phy2MacEndRx().

|
protectedvirtual |
HN transmit the BEACON packet
References curr_BEACON_HN_pck_tx, Mac2PhyStartTx(), refreshReason(), and UWUFETCH_NODE_STATUS_CHANGE_BEACON_TX.
Referenced by state_BEACON_tx().

|
protectedvirtual |
BEACON timeout is expired. In this case the HN has not received any TRIGGER packet, so start the communication with the SNs of the network.
Before to start the communication between AUV, HN move the data packets from the SN queue to the HN data queue. This operation is done only by the HN that function also as SN
References CTSrx, curr_DATA_NODE_pck_tx_HN, debugMio_, incrTotalDataPckRx_by_HN(), incrTotalDataPckTx_by_NODE(), MAX_PCK_HN_WANT_RX_FROM_NODE, out_file_logging, Q_data, Q_data_HN, refreshReason(), rxTRIGGEREnabled, state_BEACON_tx(), txBEACONEnabled, and UWUFETCH_NODE_STATUS_CHANGE_BEACON_TO_EXPIRED.

|
protectedvirtual |
Indicate whether the transmission of DATA packets to the AUV take place with or without burst data
References MODE_BURST_DATA.
Referenced by state_DATA_HN_first_tx_without(), and state_DATA_HN_tx_without().
|
protectedvirtual |
SN has received a CBEACON packet from HN. Extract all information contained into It.
References bck_before_tx_probe, BCK_timer_probe, CBEACON_timer, choiceBackOffTimer(), curr_CBEACON_NODE_pck_rx, dataAlreadyTransmitted, debugMio_, getCBeaconPckRx_by_NODE(), incrCBeaconPckRx_by_NODE(), mac_addr_HN_in_beacon, mac_addr_HN_in_cbeacon, n_BEACON_pck_rx_by_NODE, n_CBEACON_pck_rx_by_NODE, n_DATA_pck_tx_by_NODE, n_POLL_pck_rx_by_NODE, n_PROBE_pck_tx_by_NODE, num_cbeacon_at_now_HN_tx, num_cbeacon_node_rx, hdr_CBEACON_UFETCH::num_Max_CBEACON_tx_by_HN(), out_file_logging, POLL_timer, print_transitions, printStateInfo(), refreshState(), rxBEACONEnabled, rxCBEACONEnabled, rxPOLLEnabled, uwUFetch_NODE::uwUFetch_NODE_timer::schedule(), state_wait_CBEACON(), stateIdle_NODE(), hdr_CBEACON_UFETCH::t_max_bc(), T_max_bck_probe_node, hdr_CBEACON_UFETCH::t_min_bc(), T_min_bck_probe_node, txDATAEnabled, txPROBEEnabled, and UWUFETCH_NODE_STATUS_CBEACON_RECEIVE.
Referenced by Phy2MacEndRx().

|
protectedvirtual |
HN transmit the BEACON packet
References curr_CBEACON_HN_pck_tx, Mac2PhyStartTx(), refreshReason(), and UWUFETCH_NODE_STATUS_CHANGE_CBEACON_TX.
Referenced by state_CBEACON_tx().

|
protectedvirtual |
CBEACON timeout is expired. In this case SN return in Idle state and wait another BEACON packet from an another or the same HN packet
References dataAlreadyTransmitted, debugMio_, mac_addr_HN_in_beacon, n_BEACON_pck_rx_by_NODE, n_CBEACON_pck_rx_by_NODE, n_DATA_pck_tx_by_NODE, n_POLL_pck_rx_by_NODE, n_PROBE_pck_tx_by_NODE, out_file_logging, rxBEACONEnabled, rxCBEACONEnabled, rxPOLLEnabled, stateIdle_NODE(), txDATAEnabled, and txPROBEEnabled.

|
protectedvirtual |
Choose the backoff timeout used by SN before to transmit a PROBE packet
References T_max_bck_probe_node, and T_min_bck_probe_node.
Referenced by BEACON_rx(), and CBEACON_rx().
|
protectedvirtual |
Choose the backoff timeout used by HN before to transmit a RTS packet
References T_max_bck_DATA, T_max_bck_RTS, T_min_bck_DATA, T_min_bck_RTS, and typeCommunication().
Referenced by TRIGGER_rx(), and TRIGGER_rx_without().

|
virtual |
TCL command interpreter. It implements the following OTcl methods:
| 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). |
References debugMio_, fout, getTotalBeaconPckRx_by_NODE(), getTotalBeaconPckRx_corrupted_by_NODE(), getTotalBeaconTx_by_HN(), getTotalCBeaconPckRx_by_NODE(), getTotalCBeaconPckRx_corrupted_by_NODE(), getTotalCBeaconPckTx_by_HN(), getTotalCtsPckRx_corrupted_HN(), getTotalCtsPckRx_HN(), getTotalDataPckRx_by_HN(), getTotalDataPckRx_corrupted_by_HN(), getTotalDataPckTx_by_HN(), getTotalDataPckTx_by_NODE(), getTotalPollPckRx_by_NODE(), getTotalPollPckRx_corrupted_by_NODE(), getTotalPollPckTx_by_HN(), getTotalProbePckRx_corrupted_HN(), getTotalProbePckRx_HN(), getTotalProbePckTx_by_NODE(), getTotalRtsPckTx_by_HN(), getTotalTriggerPckRx_corrupted_HN(), getTotalTriggerPckRx_HN(), HEADNODE, initialized, initInfo(), N_RUN, out_file_logging, print_transitions, stateIdle_HN(), and stateIdle_NODE().

|
protectedvirtual |
Compute the transmission time for the packets transmitted by the SNs
| tp | type of packet which should be transmitted |
References mac_addr_HN_in_beacon, MAX_PAYLOAD, Tdata_NODE, Tprobe, and UWUFETCH_NODE_PACKET_TYPE_PROBE.
Referenced by PROBE_tx(), and state_wait_POLL().
|
protectedvirtual |
Compute the transmission time for the packets transmitted by the HNs
| tp | type of packet which should be transmitted |
References mac_addr_AUV_in_trigger, mac_addr_NODE_polled, MAX_PAYLOAD, Tdata_HN, Tpoll, and UWUFETCH_NODE_PACKET_TYPE_POLL.
Referenced by getDataTimerValue(), and POLL_tx().
|
virtual |
Cross-Layer messages interpreter
| ClMessage* | an instance of ClMessage that represent the message received |
|
protectedvirtual |
HN has received a CTS packet from AUV. Extract all information contained into It.
References CTSrx, curr_CTS_HN_pck_rx, debugMio_, mac_addr_AUV_in_CTS, max_data_HN_can_tx, hdr_CTS_UFETCH::num_DATA_pcks_MAX_rx(), out_file_logging, print_transitions, printStateInfo(), refreshState(), rxCTSEnabled, state_DATA_HN_first_tx(), and UWUFETCH_NODE_STATUS_CTS_RECEIVE.
Referenced by Phy2MacEndRx_HN().

|
protectedvirtual |
CTS timeout is expired. HN in this case return in idle state and interrupt the communication with AUV
References CTSrx, debugMio_, n_CTS_pck_rx_by_HN, n_RTS_pck_tx_by_HN, n_TRIGGER_pck_rx_by_HN, out_file_logging, refreshReason(), rxCTSEnabled, rxDATAEnabled, rxPROBEEnabled, rxTRIGGEREnabled, stateIdle_HN(), T_CTS, txBEACONEnabled, txCBEACONEnabled, txDATAEnabledHN, txPOLLEnabled, txRTSEnabled, and UWUFETCH_NODE_STATUS_CHANGE_TO_WAIT_CTS_EXPIRED.

|
protectedvirtual |
HN transmit a DATA packet to the AUV. In this case the communication between HN and AUV take place with RTS and CTS packets
References curr_DATA_HN_pck_tx, DATA_HN_tx_without(), Mac2PhyStartTx(), mac_addr_AUV_in_CTS, refreshReason(), typeCommunication(), and UWUFETCH_NODE_STATUS_CHANGE_DATA_PCK_TX.
Referenced by state_DATA_HN_first_tx(), state_DATA_HN_first_tx_without(), state_DATA_HN_tx(), and state_DATA_HN_tx_without().

|
protectedvirtual |
HN transmit a DATA packet to the AUV. In this case the communication between HN and AUV take place without RTS and CTS packets
References curr_DATA_HN_pck_tx, Mac2PhyStartTx(), mac_addr_AUV_in_trigger, refreshReason(), and UWUFETCH_NODE_STATUS_CHANGE_DATA_PCK_TX.
Referenced by DATA_HN_tx().

|
protectedvirtual |
SN transmit a DATA packet to a specific HN
References curr_DATA_NODE_pck_tx, Mac2PhyStartTx(), mac_addr_HN_in_poll, refreshReason(), and UWUFETCH_NODE_STATUS_CHANGE_DATA_PCK_TX.
Referenced by state_DATA_NODE_first_tx(), and state_DATA_NODE_tx().

|
protectedvirtual |
HN has received a BEACON packet from SN. Extract all information contained into It.
Save the information of the NODE that has sent the DATA packet correctly to the HN
References curr_DATA_HN_pck_rx, DATA_timer, debugMio_, getCBeaconPckTx_by_HN(), getDataPckRx_by_HN(), mac_addr_NODE_in_data, MAX_ALLOWED_CBEACON_TX, n_BEACON_pck_tx_by_HN, n_CBEACON_pck_tx_by_HN, n_DATA_pck_rx_by_HN, n_POLL_pck_tx_by_HN, n_PROBE_pck_rx_by_HN, number_data_pck_HN_rx_exact, out_file_logging, print_transitions, printStateInfo(), Q_data_HN, Q_probbed_mac_HN, refreshReason(), refreshState(), rxDATAEnabled, rxTRIGGEREnabled, state_CBEACON_tx(), state_POLL_tx(), state_wait_other_DATA(), stateIdle_HN(), txBEACONEnabled, txCBEACONEnabled, txPOLLEnabled, updateListProbbedNode(), UWUFETCH_NODE_STATUS_CHANGE_DATA_MAX_ALLOWED_PCK_RX_0_NODE_TO_POLL_NO_OTHER_CBEACON, UWUFETCH_NODE_STATUS_CHANGE_DATA_MAX_ALLOWED_PCK_RX_0_NODE_TO_POLL_YES_OTHER_CBEACON, UWUFETCH_NODE_STATUS_CHANGE_DATA_MAX_ALLOWED_PCK_RX_YES_NODE_TO_POLL, UWUFETCH_NODE_STATUS_CHANGE_LAST_DATA_PCK_RX, and UWUFETCH_NODE_STATUS_DATA_RX.
Referenced by Phy2MacEndRx_HN(), and Phy2MacEndRx_HN_without().

|
protectedvirtual |
Data timeout. After this timeout is expired the SN pass the DATA packet to its phy level that will then transmit to a specific HN
References DataBeforeTxTOExpired_HN(), isHeadNode(), and state_DATA_NODE_tx().

|
protectedvirtual |
Backoff timeout is expired. After the expiration HN can pass the successive DATA packet that will be transmitted to Its physical layer and then forwarded to the AUV. In this case the communication between HN and AUV take place without RTS and CTS packets
References state_DATA_HN_tx().
Referenced by DataBeforeTxTOExpired().

|
protectedvirtual |
DATA timeout is expired. HN is not enabled to receive other DATA packets and return in IDLE state or start the initialization and start transmission of new POLL packet.
References debugMio_, getCBeaconPckTx_by_HN(), getDataPckRx_by_HN(), mac_addr_NODE_polled, MAX_ALLOWED_CBEACON_TX, n_BEACON_pck_tx_by_HN, n_CBEACON_pck_tx_by_HN, n_DATA_pck_rx_by_HN, n_POLL_pck_tx_by_HN, n_PROBE_pck_rx_by_HN, out_file_logging, Q_probbed_mac_HN, refreshReason(), rxCTSEnabled, rxDATAEnabled, rxPROBEEnabled, rxTRIGGEREnabled, state_CBEACON_tx(), state_POLL_tx(), stateIdle_HN(), txBEACONEnabled, txCBEACONEnabled, txDATAEnabledHN, txPOLLEnabled, txRTSEnabled, updateListProbbedNode(), UWUFETCH_NODE_STATUS_CHANGE_DATA_MAX_ALLOWED_PCK_RX_0_NODE_TO_POLL_NO_OTHER_CBEACON, UWUFETCH_NODE_STATUS_CHANGE_DATA_MAX_ALLOWED_PCK_RX_0_NODE_TO_POLL_YES_OTHER_CBEACON, UWUFETCH_NODE_STATUS_CHANGE_DATA_MAX_ALLOWED_PCK_RX_YES_NODE_TO_POLL, and UWUFETCH_NODE_STATUS_CHANGE_DATA_TO_EXPIRED.

|
inlineprotected |
Number of BEACON packets received by the SN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_BEACON_pck_rx_by_NODE.
|
inlineprotected |
Number of BEACON packet transmitted by the HN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_BEACON_pck_tx_by_HN.
|
inlineprotected |
Number of CBEACON packets received by the SN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_CBEACON_pck_rx_by_NODE.
Referenced by CBEACON_rx(), Phy2MacEndRx(), PollTOExpired(), state_DATA_NODE_finish_tx(), and state_PROBE_tx().
|
inlineprotected |
Number of CBEACON packets transmitted by the HN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_CBEACON_pck_tx_by_HN.
Referenced by DATA_rx(), DataTOExpired(), ProbeTOExpired(), and state_CBEACON_tx().
|
inlineprotected |
Number of CTS packets received by the HN during a single cycle TRIGGER-RTS-CTS-DATA of the simulation
References n_CTS_pck_rx_by_HN.
|
inlineprotected |
Number of DATA packets transmitted by the HN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_DATA_pck_rx_by_HN.
Referenced by DATA_rx(), DataTOExpired(), Phy2MacEndRx_HN(), Phy2MacEndRx_HN_without(), state_wait_first_DATA(), and state_wait_other_DATA().
|
inlineprotected |
Number of DATA packets transmitted by the HN during a single cycle TRIGGER-RTS-CTS-DATA of the simulation
References n_DATA_pck_tx_by_HN.
Referenced by Mac2PhyStartTx_HN(), Phy2MacEndTx_HN(), state_DATA_HN_first_tx(), state_DATA_HN_tx(), and state_DATA_HN_tx_without().
|
inlineprotected |
Number of DATA packets transmitted by the SN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_DATA_pck_tx_by_NODE.
Referenced by Phy2MacEndTx(), and state_DATA_NODE_tx().
|
protectedvirtual |
Compute the interval time within HN want to receive all DATA packets from a specific SN
References computeTxTime_HN(), getRTT(), MAX_PCK_HN_WANT_RX_FROM_NODE, number_data_pck_HN_rx_exact, Q_probbed_n_pcks_NODE_want_tx_HN, RTT, T_GUARD, Tdata_HN, and UWUFETCH_NODE_PACKET_TYPE_DATA.
Referenced by state_wait_first_DATA().

|
inlineprotected |
Number of POLL packets received by the SN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_POLL_pck_rx_by_NODE.
|
inlineprotected |
Number of POLL packet transmitted by the HN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_POLL_pck_tx_by_HN.
|
inlineprotected |
Number of PROBE packets received by the HN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_PROBE_pck_rx_by_HN.
Referenced by Phy2MacEndRx_HN(), PROBE_rx(), ProbeTOExpired(), and state_wait_other_PROBE().
|
inlineprotected |
Number of PROBE packets transmitted by the SN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_PROBE_pck_tx_by_NODE.
Referenced by Phy2MacEndRx().
|
inlineprotected |
Number of RTS packets transmitted by the HN during a single cycle TRIGGER-RTS-CTS-DATA of the simulation
References n_RTS_pck_tx_by_HN.
|
protectedvirtual |
Compute the round trip time
References RTT, rx_PROBE_finish_HN_time, tx_BEACON_start_HN_time, and tx_CBEACON_start_HN_time.
Referenced by getDataTimerValue().
|
inlineprotected |
Total number of BEACON packets received correctly or not by SN during an entire duration of simulation
References n_tot_BEACON_pck_rx_by_NODE.
Referenced by command().
|
inlineprotected |
Total number of corrupted BEACON packets received by SN during an entire duration of simulation
References n_tot_BEACON_pck_rx_corr_by_NODE.
Referenced by command().
|
inlineprotected |
Total number of BEACON packets transmitted by the HN during an entire simulation
References n_tot_BEACON_pck_tx_by_HN.
Referenced by command(), and Phy2MacEndTx_HN().
|
inlineprotected |
Total number of CBEACON packets received correctly or not by SN during an entire duration of simulation
References n_tot_CBEACON_pck_rx_by_NODE.
Referenced by command().
|
inlineprotected |
Total number of corrupted CBEACON packets received by SN during an entire duration of simulation
References n_tot_CBEACON_pck_rx_corr_by_NODE.
Referenced by command().
|
inlineprotected |
Total number of CBEACON packets transmitted by the HN during an entire simulation
References n_tot_CBEACON_pck_tx_by_HN.
Referenced by command(), and Phy2MacEndTx_HN().
|
inlineprotected |
Total number of corrupted CTS packets received by the HN during an entire simulation
References n_tot_CTS_pck_rx_corr_by_HN.
Referenced by command().
|
inlineprotected |
Total number of CTS packets correctly or not received by the HN during an entire simulation
References n_tot_CTS_pck_rx_by_HN.
Referenced by command().
|
inlineprotected |
Total number of DATA packets correctly or not received by the HN during an entire simulation
References n_tot_DATA_pck_rx_by_HN.
Referenced by command().
|
inlineprotected |
Total number of corrupted DATA packets received by the HN during an entire simulation
References n_tot_DATA_pck_rx_corr_by_HN.
Referenced by command().
|
inlineprotected |
Total number of DATA packets transmitted by the HN during an entire simulation
References n_tot_DATA_pck_tx_by_HN.
Referenced by command(), and Phy2MacEndTx_HN().
|
inlineprotected |
Total number of DATA packets transmitted by SN during an entire duration of simulation
References n_tot_DATA_pck_tx_by_NODE.
Referenced by command().
|
inlineprotected |
Total number of POLL packets received correctly or not by SN during an entire duration of simulation
References n_tot_POLL_pck_rx_by_NODE.
Referenced by command().
|
inlineprotected |
Total number of corrupted POLL packets received by SN during an entire duration of simulation
References n_tot_POLL_pck_rx_corr_by_NODE.
Referenced by command().
|
inlineprotected |
Total number of POLL packets transmitted by the HN during an entire simulation
References n_tot_POLL_pck_tx_by_HN.
Referenced by command().
|
inlineprotected |
Total number of corrupted PROBE packets received by the HN during an entire simulation
References n_tot_PROBE_pck_corr_rx_by_HN.
Referenced by command(), and Phy2MacEndRx_HN().
|
inlineprotected |
Total number of PROBE packets correctly or not received by the HN during an entire simulation
References n_tot_PROBE_pck_rx_by_HN.
Referenced by command(), and Phy2MacEndRx_HN().
|
inlineprotected |
Total number of PROBE packets transmitted by SN during an entire duration of simulation
References n_tot_PROBE_pck_tx_by_NODE.
Referenced by command().
|
inlineprotected |
Total number of RTS packets transmitted by the HN during an entire simulation
References n_tot_RTS_pck_tx_by_HN.
Referenced by command().
|
inlineprotected |
Total number of corrupted TRIGGER packets received by the HN during an entire simulation
References n_tot_TRIGGER_pck_rx_corr_by_HN.
Referenced by command().
|
inlineprotected |
Total number of TRIGGER packets correctly or not received by the HN during an entire simulation
References n_tot_TRIGGER_pck_rx_by_HN.
Referenced by command().
|
inlineprotected |
Number of TRIGGER packets received by the HN during a single cycle TRIGGER-RTS-CTS-DATA of the simulation
References n_TRIGGER_pck_rx_by_HN.
|
inlineprotected |
Increase the number of BEACON packets received by the SN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_BEACON_pck_rx_by_NODE.
Referenced by Phy2MacEndRx().
|
inlineprotected |
Increase the number of BEACON packet transmitted by the HN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_BEACON_pck_tx_by_HN.
Referenced by Phy2MacEndTx_HN().
|
inlineprotected |
Increase the number of CBEACON packets received by the SN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_CBEACON_pck_rx_by_NODE.
Referenced by CBEACON_rx(), and Phy2MacEndRx().
|
inlineprotected |
Increase the number of CBEACON packets transmitted by the HN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_CBEACON_pck_tx_by_HN.
Referenced by Phy2MacEndTx_HN().
|
inlineprotected |
Increase the number of CTS packets received by the HN during a single cycle TRIGGER-RTS-CTS-DATA of the simulation
References n_CTS_pck_rx_by_HN.
Referenced by Phy2MacEndRx_HN().
|
inlineprotected |
Increase the number of DATA packets transmitted by the HN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_DATA_pck_rx_by_HN.
Referenced by Phy2MacEndRx_HN(), and Phy2MacEndRx_HN_without().
|
inlineprotected |
Increase the number of DATA packets transmitted by the HN during a single cycle TRIGGER-RTS-CTS-DATA of the simulation
References n_DATA_pck_tx_by_HN.
Referenced by Phy2MacEndTx_HN().
|
inlineprotected |
Increase the number of DATA packets transmitted by the SN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_DATA_pck_tx_by_NODE.
Referenced by Phy2MacEndTx().
|
inlineprotected |
Increase the number of POLL packets received by the SN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_POLL_pck_rx_by_NODE.
Referenced by Phy2MacEndRx().
|
inlineprotected |
Increase the number of POLL packets transmitted by the HN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_POLL_pck_tx_by_HN.
Referenced by Phy2MacEndTx_HN().
|
inlineprotected |
Increase number of PROBE packets received by the HN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_PROBE_pck_rx_by_HN.
Referenced by Phy2MacEndRx_HN().
|
inlineprotected |
Increase the number of PROBE packets transmitted by the SN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
References n_PROBE_pck_tx_by_NODE.
Referenced by Phy2MacEndTx().
|
inlineprotected |
Increase the number of RTS packets transmitted by the HN during a single cycle TRIGGER-RTS-CTS-DATA of the simulation
References n_RTS_pck_tx_by_HN.
Referenced by Phy2MacEndTx_HN().
|
inlineprotected |
Increase the total number of BEACON packets received correctly or not by SN during an entire duration of simulation
References n_tot_BEACON_pck_rx_by_NODE.
Referenced by Phy2MacEndRx().
|
inlineprotected |
Increase the total number of corrupted BEACON packets received by SN during an entire duration of simulation
References n_tot_BEACON_pck_rx_corr_by_NODE.
Referenced by Phy2MacEndRx().
|
inlineprotected |
Increase the total number of BEACON packets transmitted by the HN during an entire simulation
References n_tot_BEACON_pck_tx_by_HN.
Referenced by Phy2MacEndTx_HN().
|
inlineprotected |
Increase the total number of CBEACON packets received correctly or not by SN during an entire duration of simulation
References n_tot_CBEACON_pck_rx_by_NODE.
Referenced by Phy2MacEndRx().
|
inlineprotected |
Increase the total number of corrupted CBEACON packets received by SN during an entire duration of simulation
References n_tot_CBEACON_pck_rx_corr_by_NODE.
Referenced by Phy2MacEndRx().
|
inlineprotected |
Increase the total number of CBEACON packets transmitted by the HN during an entire simulation
References n_tot_CBEACON_pck_tx_by_HN.
Referenced by Phy2MacEndTx_HN().
|
inlineprotected |
Increase the total number of corrupted CTS packets received by the HN during an entire simulation
References n_tot_CTS_pck_rx_corr_by_HN.
Referenced by Phy2MacEndRx_HN().
|
inlineprotected |
Increase the total number of CTS packets correctly or not received by the HN during an entire simulation
References n_tot_CTS_pck_rx_by_HN.
Referenced by Phy2MacEndRx_HN().
|
inlineprotected |
Increase total number of DATA packets correctly or not received by the HN during an entire simulation
References n_tot_DATA_pck_rx_by_HN.
Referenced by BeaconTxTOExpire(), Phy2MacEndRx_HN(), Phy2MacEndRx_HN_without(), and stateIdle_HN().
|
inlineprotected |
Increase total number of corrupted DATA packets received by the HN during an entire simulation
References n_tot_DATA_pck_rx_corr_by_HN.
Referenced by Phy2MacEndRx_HN(), and Phy2MacEndRx_HN_without().
|
inlineprotected |
Increase the total number of DATA packets transmitted by the HN during an entire simulation
References n_tot_DATA_pck_tx_by_HN.
Referenced by Phy2MacEndTx_HN().
|
inlineprotected |
Increase the total number of DATA packets transmitted by SN during an entire duration of simulation
References n_tot_DATA_pck_tx_by_NODE.
Referenced by BeaconTxTOExpire(), Phy2MacEndRx_HN(), Phy2MacEndRx_HN_without(), Phy2MacEndTx(), and stateIdle_HN().
|
inlineprotected |
Increase the total number of POLL packets received correctly or not by SN during an entire duration of simulation
References n_tot_POLL_pck_rx_by_NODE.
Referenced by Phy2MacEndRx().
|
inlineprotected |
Increase the total number of corrupted POLL packets received by SN during an entire duration of simulation
References n_tot_POLL_pck_rx_corr_by_NODE.
Referenced by Phy2MacEndRx().
|
inlineprotected |
Increase the total number of POLL packets transmitted by the HN during an entire simulation
References n_tot_POLL_pck_tx_by_HN.
Referenced by Phy2MacEndTx_HN().
|
inlineprotected |
Increase the total number of corrupted PROBE packets received by the HN during an entire simulation
References n_tot_PROBE_pck_corr_rx_by_HN.
Referenced by Phy2MacEndRx_HN().
|
inlineprotected |
Increase total number of PROBE packets correctly or not received by the HN during an entire simulation
References n_tot_PROBE_pck_rx_by_HN.
Referenced by Phy2MacEndRx_HN().
|
inlineprotected |
Increase the total number of PROBE packets transmitted by SN during an entire duration of simulation
References n_tot_PROBE_pck_tx_by_NODE.
Referenced by Phy2MacEndTx().
|
inlineprotected |
Increase the total number of RTS packets transmitted by the HN during an entire simulation
References n_tot_RTS_pck_tx_by_HN.
Referenced by Phy2MacEndTx_HN().
|
inlineprotected |
Increase the total number of corrupted TRIGGER packets received by the HN during an entire simulation
References n_tot_TRIGGER_pck_rx_corr_by_HN.
Referenced by Phy2MacEndRx_HN(), and Phy2MacEndRx_HN_without().
|
inlineprotected |
Increase the total number of TRIGGER packets correctly or not received by the HN during an entire simulation
References n_tot_TRIGGER_pck_rx_by_HN.
Referenced by Phy2MacEndRx_HN(), and Phy2MacEndRx_HN_without().
|
inlineprotected |
Increase the number of TRIGGER packets received by the HN during a single cycle TRIGGER-RTS-CTS-DATA of the simulation
References n_TRIGGER_pck_rx_by_HN.
Referenced by Phy2MacEndRx_HN(), and Phy2MacEndRx_HN_without().
|
protectedvirtual |
Initialize the protocol at the beginning of the simulation. This method is called by a command in TCL.
References initialized, packetType, print_transitions, statusChange, statusInfo, statusTimer, UWFETCH_NODE_STATUS_CHANGE_CBEACON_RX_DATA_ALREADY_TX, UWFETCH_NODE_STATUS_CHANGE_PACKET_ERROR, UWFETCH_NODE_STATUS_CHANGE_PACKET_FOR_ANOTHER_NODE, UWFETCH_NODE_STATUS_CHANGE_PACKET_UNKNOWN_TYPE, UWFETCH_NODE_STATUS_CHANGE_STATE_IDLE, UWUFETCH_NODE_PACKET_TYPE_BEACON, UWUFETCH_NODE_PACKET_TYPE_CTS, UWUFETCH_NODE_PACKET_TYPE_DATA, UWUFETCH_NODE_PACKET_TYPE_POLL, UWUFETCH_NODE_PACKET_TYPE_PROBE, UWUFETCH_NODE_PACKET_TYPE_RTS, UWUFETCH_NODE_PACKET_TYPE_TRIGGER, UWUFETCH_NODE_STATUS_BEACON_RECEIVE, UWUFETCH_NODE_STATUS_CBEACON_RECEIVE, UWUFETCH_NODE_STATUS_CHANGE_BEACON_RX, UWUFETCH_NODE_STATUS_CHANGE_BEACON_TO_EXPIRED, UWUFETCH_NODE_STATUS_CHANGE_BEACON_TX, UWUFETCH_NODE_STATUS_CHANGE_CBEACON_ALLOWED_TX_0_PROBE_RX, UWUFETCH_NODE_STATUS_CHANGE_CBEACON_MAX_ALLOWED_TX, UWUFETCH_NODE_STATUS_CHANGE_CBEACON_MAX_ALLOWED_TX_0_PROBE_RX, UWUFETCH_NODE_STATUS_CHANGE_CBEACON_TX, UWUFETCH_NODE_STATUS_CHANGE_CTS_RX, UWUFETCH_NODE_STATUS_CHANGE_DATA_MAX_ALLOWED_PCK_RX_0_NODE_TO_POLL_NO_OTHER_CBEACON, UWUFETCH_NODE_STATUS_CHANGE_DATA_MAX_ALLOWED_PCK_RX_0_NODE_TO_POLL_YES_OTHER_CBEACON, UWUFETCH_NODE_STATUS_CHANGE_DATA_MAX_ALLOWED_PCK_RX_YES_NODE_TO_POLL, UWUFETCH_NODE_STATUS_CHANGE_DATA_PCK_TX, UWUFETCH_NODE_STATUS_CHANGE_DATA_RX, UWUFETCH_NODE_STATUS_CHANGE_DATA_TO_EXPIRED, UWUFETCH_NODE_STATUS_CHANGE_DATA_TO_EXPIRED_0_NODE_TO_POLL_NO_OTHER_CBEACON, UWUFETCH_NODE_STATUS_CHANGE_DATA_TO_EXPIRED_0_NODE_TO_POLL_YES_OTHER_CBEACON, UWUFETCH_NODE_STATUS_CHANGE_DATA_TO_EXPIRED_ANOTHER_NODE_TO_POLL, UWUFETCH_NODE_STATUS_CHANGE_HN_FINISH_TX_DATA_PCK_TO_AUV_RETURN_CBEACON_TX, UWUFETCH_NODE_STATUS_CHANGE_HN_RX_TRIGGER_FROM_AUV_CORRUPTED, UWUFETCH_NODE_STATUS_CHANGE_HN_TX_ALL_DATA_TO_AUV, UWUFETCH_NODE_STATUS_CHANGE_LAST_DATA_PCK_RX, UWUFETCH_NODE_STATUS_CHANGE_MAX_DATA_PCK_TX, UWUFETCH_NODE_STATUS_CHANGE_MAX_PROBE_RX_PROBE_TO_NOT_EXPIRED, UWUFETCH_NODE_STATUS_CHANGE_POLL_RX, UWUFETCH_NODE_STATUS_CHANGE_POLL_TX, UWUFETCH_NODE_STATUS_CHANGE_PROBE_RX, UWUFETCH_NODE_STATUS_CHANGE_PROBE_TX, UWUFETCH_NODE_STATUS_CHANGE_RTS_TX, UWUFETCH_NODE_STATUS_CHANGE_TO_EXPIRED_AT_LEAST_1_PROBE_RX, UWUFETCH_NODE_STATUS_CHANGE_TO_WAIT_CTS_EXPIRED, UWUFETCH_NODE_STATUS_CHANGE_TO_WAIT_POLL_EXPIRED, UWUFETCH_NODE_STATUS_CHANGE_TRIGGER_RX, UWUFETCH_NODE_STATUS_CHANGE_TRIGGER_RX_BUT_HN_NO_DATA_TO_TX, UWUFETCH_NODE_STATUS_CTS_RECEIVE, UWUFETCH_NODE_STATUS_DATA_RX, UWUFETCH_NODE_STATUS_IDLE, UWUFETCH_NODE_STATUS_POLL_RECEIVE, UWUFETCH_NODE_STATUS_POLL_TX, UWUFETCH_NODE_STATUS_PROBE_RX, UWUFETCH_NODE_STATUS_RTS_TRANSMIT, UWUFETCH_NODE_STATUS_TRANSMIT_BEACON, UWUFETCH_NODE_STATUS_TRANSMIT_DATA, UWUFETCH_NODE_STATUS_TRANSMIT_PROBE, UWUFETCH_NODE_STATUS_TRIGGER_RECEIVE, UWUFETCH_NODE_STATUS_WAIT_CBEACON_PACKET, UWUFETCH_NODE_STATUS_WAIT_CTS_PACKET, UWUFETCH_NODE_STATUS_WAIT_DATA_NODE, UWUFETCH_NODE_STATUS_WAIT_POLL_PACKET, UWUFETCH_NODE_STATUS_WAIT_PROBE_PACKET, UWUFETCH_TIMER_STATUS_EXPIRED, UWUFETCH_TIMER_STATUS_FROZEN, UWUFETCH_TIMER_STATUS_IDLE, and UWUFETCH_TIMER_STATUS_RUNNING.
Referenced by command().
|
protectedvirtual |
Indicate if the node created work as head node or sensor node
References HEADNODE.
Referenced by BCKTOExpired(), DataBeforeTxTOExpired(), Mac2PhyStartTx(), Phy2MacEndRx(), Phy2MacEndTx(), Phy2MacStartRx(), and recvFromUpperLayers().
|
protectedvirtual |
This method must be called by the SN-MAC to instruct the PHY to start the transmission of a packet
| p | pointer to the packet to be transmitted |
References debugMio_, isHeadNode(), Mac2PhyStartTx_HN(), mac_addr_HN_in_beacon, out_file_logging, PT_PROBE_UFETCH, Tdata_NODE_pck, TIME_BETWEEN_2_TX_DATA_NODE_HN, tx_DATA_start_time, and tx_PROBE_start_time.
Referenced by BEACON_tx(), CBEACON_tx(), DATA_HN_tx(), DATA_HN_tx_without(), DATA_NODE_tx(), POLL_tx(), PROBE_tx(), and RTS_tx().

|
protectedvirtual |
This method must be called by the HN-MAC to instruct the PHY to start the transmission of a packet.
| p | pointer to the packet to be transmitted |
References debugMio_, getDataPckTx_by_HN(), mac_addr_AUV_in_CTS, mac_addr_AUV_in_trigger, mac_addr_NODE_polled, out_file_logging, PT_BEACON_UFETCH, PT_CBEACON_UFETCH, PT_POLL_UFETCH, PT_RTS_UFETCH, Tdata_HN_pck, TIME_BETWEEN_2_TX_DATA_HN_AUV, tx_BEACON_start_HN_time, tx_CBEACON_start_HN_time, tx_DATA_start_HN_time, tx_POLL_start_HN_time, and tx_RTS_start_HN_time.
Referenced by Mac2PhyStartTx().

|
protectedvirtual |
Handle the end-of-PHY-reception event
| p | pointer to the packet whose reception has ended. |
Se il beacon è ricevuto dal nodo da cui sto aspettando il POLL, allora considera il BEACON anche se é in errore e ritorna nello stato di IDLE resettando il POLL timeout, altrimenti droppa semplicemente il pacchetto
Save the information of POLL HEADER
References BEACON_rx(), CBEACON_rx(), CBEACON_timer, curr_BEACON_NODE_pck_rx, curr_CBEACON_NODE_pck_rx, curr_POLL_NODE_pck_rx, dataAlreadyTransmitted, debugMio_, getCBeaconPckRx_by_NODE(), getProbePckTx_by_NODE(), incrBeaconPckRx_by_NODE(), incrCBeaconPckRx_by_NODE(), incrPollPckRx_by_NODE(), incrTotalBeaconPckRx_by_NODE(), incrTotalBeaconPckRx_corrupted_by_NODE(), incrTotalCBeaconPckRx_by_NODE(), incrTotalCBeaconPckRx_corrupted_by_NODE(), incrTotalPollPckRx_by_NODE(), incrTotalPollPckRx_corrupted_by_NODE(), isHeadNode(), mac_addr_HN_in_beacon, mac_addr_HN_in_cbeacon, n_BEACON_pck_rx_by_NODE, n_CBEACON_pck_rx_by_NODE, n_DATA_pck_tx_by_NODE, n_POLL_pck_rx_by_NODE, n_PROBE_pck_tx_by_NODE, num_cbeacon_node_rx, hdr_POLL_UFETCH::num_DATA_pcks_MAX_rx(), num_pck_to_tx_by_NODE, out_file_logging, Phy2MacEndRx_HN(), POLL_rx(), POLL_timer, PT_BEACON_UFETCH, PT_CBEACON_UFETCH, PT_POLL_UFETCH, PT_PROBE_UFETCH, PT_TRIGGER_UFETCH, refreshReason(), rx_BEACON_finish_time, rx_POLL_finish_time, rxBEACONEnabled, rxCBEACONEnabled, rxPOLLEnabled, uwUFetch_NODE::uwUFetch_NODE_timer::schedule(), state_wait_CBEACON(), stateIdle_NODE(), T_GUARD, T_POLL, txDATAEnabled, txPROBEEnabled, UWFETCH_NODE_STATUS_CHANGE_PACKET_ERROR, UWFETCH_NODE_STATUS_CHANGE_PACKET_FOR_ANOTHER_NODE, and UWUFETCH_NODE_STATUS_CHANGE_BEACON_RX.

|
protectedvirtual |
Handle the end-of-PHY-reception event for HEAD NODE
| p | pointer to the packet whose reception has ended. |
Handle the end-of-PHY-reception event
| p | pointer to the packet whose reception has ended. |
remove the DATA packet into the queue of the SENSOR NODE and put It into the queue of HN
| p |
References BeaconBeforeTx_timer, CTS_rx(), CTS_timer, CTSrx, curr_CTS_HN_pck_rx, curr_DATA_HN_pck_rx, curr_DATA_NODE_pck_tx_HN, curr_PROBE_HN_pck_rx, curr_TRIGGER_HN_pck_rx, DATA_rx(), debugMio_, getDataPckRx_by_HN(), getProbePckRx_HN(), getTotalProbePckRx_corrupted_HN(), getTotalProbePckRx_HN(), incrCtsPckRx_HN(), incrDataPckRx_by_HN(), incrProbePckRx_HN(), incrTotalCtsPckRx_corrupted_HN(), incrTotalCtsPckRx_HN(), incrTotalDataPckRx_by_HN(), incrTotalDataPckRx_corrupted_by_HN(), incrTotalDataPckTx_by_NODE(), incrTotalProbePckRx_corrupted_HN(), incrTotalProbePckRx_HN(), incrTotalTriggerPckRx_corrupted_HN(), incrTotalTriggerPckRx_HN(), incrTriggerPckRx_HN(), mac_addr_AUV_in_trigger, MAX_PCK_HN_WANT_RX_FROM_NODE, n_CTS_pck_rx_by_HN, n_DATA_pck_tx_by_HN, n_RTS_pck_tx_by_HN, n_TRIGGER_pck_rx_by_HN, out_file_logging, Phy2MacEndRx_HN_without(), PROBE_rx(), PT_BEACON_UFETCH, PT_CBEACON_UFETCH, PT_CTS_UFETCH, PT_POLL_UFETCH, PT_PROBE_UFETCH, PT_TRIGGER_UFETCH, Q_data, Q_data_HN, refreshReason(), rx_CTS_finish_HN_time, rx_DATA_finish_HN_time, rx_PROBE_finish_HN_time, rx_TRIGGER_finish_HN_time, rxCTSEnabled, rxPROBEEnabled, rxTRIGGEREnabled, stateIdle_HN(), TRIGGER_rx(), typeCommunication(), UWFETCH_NODE_STATUS_CHANGE_PACKET_ERROR, UWUFETCH_NODE_STATUS_CHANGE_CTS_RX, UWUFETCH_NODE_STATUS_CHANGE_DATA_RX, UWUFETCH_NODE_STATUS_CHANGE_HN_RX_TRIGGER_FROM_AUV_CORRUPTED, UWUFETCH_NODE_STATUS_CHANGE_PROBE_RX, and UWUFETCH_NODE_STATUS_CHANGE_TRIGGER_RX.
Referenced by Phy2MacEndRx().

|
protectedvirtual |
Handle the end-of-PHY-reception event for HEAD NODE in the case that the communication don't use RTS-CTS packets
| p | pointer to the packet whose reception has ended. |
Before to start the communication between AUV, HN move the data packets from the SN queue to the HN data queue. This operation is done only by the HN that function also as SN
References BeaconBeforeTx_timer, curr_DATA_HN_pck_rx, curr_DATA_NODE_pck_tx_HN, curr_TRIGGER_HN_pck_rx, DATA_rx(), debugMio_, getDataPckRx_by_HN(), incrDataPckRx_by_HN(), incrTotalDataPckRx_by_HN(), incrTotalDataPckRx_corrupted_by_HN(), incrTotalDataPckTx_by_NODE(), incrTotalTriggerPckRx_corrupted_HN(), incrTotalTriggerPckRx_HN(), incrTriggerPckRx_HN(), mac_addr_AUV_in_trigger, MAX_PCK_HN_WANT_RX_FROM_NODE, out_file_logging, PT_POLL_UFETCH, PT_PROBE_UFETCH, PT_TRIGGER_UFETCH, Q_data, Q_data_HN, refreshReason(), rx_DATA_finish_HN_time, rx_TRIGGER_finish_HN_time, rxTRIGGEREnabled, hdr_uwcbr::sn(), stateIdle_HN(), TRIGGER_rx(), UWFETCH_NODE_STATUS_CHANGE_PACKET_ERROR, UWUFETCH_NODE_STATUS_CHANGE_DATA_RX, UWUFETCH_NODE_STATUS_CHANGE_HN_RX_TRIGGER_FROM_AUV_CORRUPTED, and UWUFETCH_NODE_STATUS_CHANGE_TRIGGER_RX.
Referenced by Phy2MacEndRx_HN().

|
protectedvirtual |
Handle the end-of-PHY-transmission event
| p | pointer to the packet whose transmission has ended. Note that the Packet is not any more under control of the SN-MAC at the time this event occurs, hence the 'const' declaration. |
References DATA_BEFORE_TX_timer, dataAlreadyTransmitted, debugMio_, getDataPckTx_by_NODE(), incrDataPckTx_by_NODE(), incrProbePckTx_by_NODE(), incrTotalDataPckTx_by_NODE(), incrTotalProbePckTx_by_NODE(), isHeadNode(), mac_addr_HN_in_beacon, mac_addr_HN_in_poll, num_pck_to_tx_by_NODE, out_file_logging, Phy2MacEndTx_HN(), PT_PROBE_UFETCH, rxBEACONEnabled, uwUFetch_NODE::uwUFetch_NODE_timer::schedule(), state_DATA_NODE_finish_tx(), state_wait_POLL(), Tdata_NODE_pck, tx_DATA_finish_time, tx_PROBE_finish_time, and txPROBEEnabled.

|
protectedvirtual |
Handle the end-of-PHY-transmission event for HEAD NODE
| p | pointer to the packet whose transmission has ended. Note that the Packet is not any more under control of the HN-MAC at the time this event occurs, hence the 'const' declaration. |
Handle the end-of-PHY-transmission event
| p | pointer to the packet whose transmission has ended. Note that the Packet is not any more under control of the MAC at the time this event occurs, hence the 'const' declaration. |
References DATA_BEFORE_TX_timer, debugMio_, getDataPckTx_by_HN(), getTotalBeaconTx_by_HN(), getTotalCBeaconPckTx_by_HN(), getTotalDataPckTx_by_HN(), incrBeaconPckTx_by_HN(), incrCBeaconPckTx_by_HN(), incrDataPckTx_by_HN(), incrPollPckTx_by_HN(), incrRtsPckTx_by_HN(), incrTotalBeaconPckTx_by_HN(), incrTotalCBeaconPckTx_by_HN(), incrTotalDataPckTx_by_HN(), incrTotalPollPckTx_by_HN(), incrTotalRtsPckTx_by_HN(), mac_addr_AUV_in_CTS, mac_addr_AUV_in_trigger, mac_addr_NODE_polled, max_data_HN_can_tx, out_file_logging, PT_BEACON_UFETCH, PT_CBEACON_UFETCH, PT_POLL_UFETCH, PT_RTS_UFETCH, uwUFetch_NODE::uwUFetch_NODE_timer::schedule(), state_DATA_HN_finish_tx(), state_wait_CTS(), state_wait_first_DATA(), state_wait_PROBE(), Tdata_HN_pck, tx_BEACON_finish_HN_time, tx_CBEACON_finish_HN_time, tx_DATA_finish_HN_time, tx_POLL_finish_HN_time, tx_RTS_finish_HN_time, txBEACONEnabled, txCBEACONEnabled, txPOLLEnabled, and txRTSEnabled.
Referenced by Phy2MacEndTx().

|
protectedvirtual |
Handle the detected-start-of-PHY-reception event for SENSOR NODE
| p | pointer to the packet whose reception has begun. |
References debugMio_, isHeadNode(), out_file_logging, Phy2MacStartRx_HN(), PT_BEACON_UFETCH, PT_CBEACON_UFETCH, PT_POLL_UFETCH, PT_PROBE_UFETCH, PT_TRIGGER_UFETCH, rx_BEACON_start_time, rx_CBEACON_start_time, rx_POLL_start_time, and rxBEACONEnabled.

|
protectedvirtual |
Handle the detected-start-of-PHY-reception event for HEAD NODE
| p | pointer to the packet whose reception has begun. |
References debugMio_, out_file_logging, PT_BEACON_UFETCH, PT_CBEACON_UFETCH, PT_CTS_UFETCH, PT_POLL_UFETCH, PT_PROBE_UFETCH, PT_TRIGGER_UFETCH, rx_CTS_start_HN_time, rx_DATA_start_HN_time, rx_PROBE_start_HN_time, and rx_TRIGGER_start_HN_time.
Referenced by Phy2MacStartRx().
|
protectedvirtual |
SN has received a POLL packet from a specific HN. Extract all information contained into It.
Save the information of POLL HEADER
References curr_POLL_NODE_pck_rx, debugMio_, mac_addr_HN_in_poll, hdr_POLL_UFETCH::num_DATA_pcks_MAX_rx(), num_pck_to_tx_by_NODE, out_file_logging, print_transitions, printStateInfo(), refreshState(), rxPOLLEnabled, state_DATA_NODE_first_tx(), and UWUFETCH_NODE_STATUS_POLL_RECEIVE.
Referenced by Phy2MacEndRx().

|
protectedvirtual |
HN transmit POLL packet to a specific SN of th network
References computeTxTime_HN(), curr_POLL_HN_pck_tx, Mac2PhyStartTx(), mac_addr_NODE_polled, refreshReason(), UWUFETCH_NODE_PACKET_TYPE_POLL, and UWUFETCH_NODE_STATUS_CHANGE_POLL_TX.
Referenced by state_POLL_tx().

|
protectedvirtual |
POLL timeout is expired. SN return in Idle state and wait a BEACON packet, or start to wait a CBEACON packet from HN.
References dataAlreadyTransmitted, debugMio_, getCBeaconPckRx_by_NODE(), mac_addr_HN_in_beacon, n_BEACON_pck_rx_by_NODE, n_CBEACON_pck_rx_by_NODE, n_DATA_pck_tx_by_NODE, n_POLL_pck_rx_by_NODE, n_PROBE_pck_tx_by_NODE, num_cbeacon_node_rx, out_file_logging, refreshReason(), rxBEACONEnabled, rxCBEACONEnabled, rxPOLLEnabled, state_wait_CBEACON(), stateIdle_NODE(), txDATAEnabled, and UWUFETCH_NODE_STATUS_CHANGE_TO_WAIT_POLL_EXPIRED.

|
protectedvirtual |
Prints a file with every state change for debug purposes.
| double | delay |
References curr_state, fout, last_reason, prev_state, statusChange, and statusInfo.
Referenced by BEACON_rx(), CBEACON_rx(), CTS_rx(), DATA_rx(), POLL_rx(), PROBE_rx(), state_BEACON_tx(), state_CBEACON_tx(), state_POLL_tx(), state_PROBE_tx(), state_RTS_tx(), state_wait_CBEACON(), state_wait_CTS(), state_wait_first_DATA(), state_wait_other_DATA(), state_wait_other_PROBE(), state_wait_POLL(), state_wait_PROBE(), stateIdle_HN(), stateIdle_NODE(), TRIGGER_rx(), and TRIGGER_rx_without().
|
protectedvirtual |
HN has received a PROBE packet from SN. Extract all information contained into It.
Save the information of the NODE that has sent the PROBE packet correctly to the HN
References hdr_PROBE_UFETCH::backoff_time_PROBE(), curr_PROBE_HN_pck_rx, debugMio_, getProbePckRx_HN(), MAX_POLLED_NODE, hdr_PROBE_UFETCH::n_DATA_pcks_Node_tx(), out_file_logging, print_transitions, printStateInfo(), PROBE_timer, Q_probbed_backoff_time, Q_probbed_mac_HN, Q_probbed_n_pcks_NODE_want_tx_HN, refreshReason(), refreshState(), rxPROBEEnabled, state_POLL_tx(), state_wait_other_PROBE(), UWUFETCH_NODE_STATUS_CHANGE_MAX_PROBE_RX_PROBE_TO_NOT_EXPIRED, and UWUFETCH_NODE_STATUS_PROBE_RX.
Referenced by Phy2MacEndRx_HN().

|
protectedvirtual |
Transmission of PROBE packet by SN to the specific HN.
References computeTxTime(), curr_PROBE_NODE_pck_tx, Mac2PhyStartTx(), mac_addr_HN_in_beacon, refreshReason(), UWUFETCH_NODE_PACKET_TYPE_PROBE, and UWUFETCH_NODE_STATUS_CHANGE_PROBE_TX.
Referenced by state_PROBE_tx().

|
protectedvirtual |
Probe timeout is expired. The HN start to transmit a POLL packet in unicast to a specific SN from which It has received a POLL packet. The order of the transmission of POLL packet is FIFO type.
References debugMio_, getCBeaconPckTx_by_HN(), getProbePckRx_HN(), MAX_ALLOWED_CBEACON_TX, n_BEACON_pck_tx_by_HN, n_CBEACON_pck_tx_by_HN, n_DATA_pck_rx_by_HN, n_POLL_pck_tx_by_HN, n_PROBE_pck_rx_by_HN, out_file_logging, Q_probbed_mac_HN, refreshReason(), rxPROBEEnabled, rxTRIGGEREnabled, state_CBEACON_tx(), state_POLL_tx(), stateIdle_HN(), txBEACONEnabled, txCBEACONEnabled, UWUFETCH_NODE_STATUS_CHANGE_CBEACON_ALLOWED_TX_0_PROBE_RX, UWUFETCH_NODE_STATUS_CHANGE_CBEACON_MAX_ALLOWED_TX_0_PROBE_RX, and UWUFETCH_NODE_STATUS_CHANGE_TO_EXPIRED_AT_LEAST_1_PROBE_RX.

|
protectedvirtual |
Handle a packet coming from upper layers of SN
| p | packet that node receiving from upper layer. DATA packet created by application layer |
References debugMio_, isHeadNode(), MAXIMUM_BUFFER_DATA_PCK_NODE, out_file_logging, Q_data, recvFromUpperLayers_HN(), and hdr_uwcbr::sn().

|
protectedvirtual |
Handle a packet coming from upper layers of HN
| p | packet that node receiving from upper layer. DATA packet created by application layer |
References debugMio_, MAXIMUM_BUFFER_DATA_PCK_NODE, out_file_logging, and Q_data.
Referenced by recvFromUpperLayers().
|
inlineprotectedvirtual |
Refresh the reason for the changing of the state
| UWPOLLING_AUV_REASON | The reason of the change of the state of the protocol |
References last_reason.
Referenced by BEACON_tx(), BeaconTxTOExpire(), CBEACON_tx(), CtsTOExpired(), DATA_HN_tx(), DATA_HN_tx_without(), DATA_NODE_tx(), DATA_rx(), DataTOExpired(), Phy2MacEndRx(), Phy2MacEndRx_HN(), Phy2MacEndRx_HN_without(), POLL_tx(), PollTOExpired(), PROBE_rx(), PROBE_tx(), ProbeTOExpired(), RTS_tx(), state_DATA_HN_finish_tx(), state_DATA_HN_finish_tx_without(), and state_RTS_tx().
|
inlineprotectedvirtual |
References curr_state, and prev_state.
Referenced by BEACON_rx(), CBEACON_rx(), CTS_rx(), DATA_rx(), POLL_rx(), PROBE_rx(), state_BEACON_tx(), state_CBEACON_tx(), state_POLL_tx(), state_PROBE_tx(), state_RTS_tx(), state_wait_CBEACON(), state_wait_CTS(), state_wait_first_DATA(), state_wait_other_DATA(), state_wait_other_PROBE(), state_wait_POLL(), state_wait_PROBE(), stateIdle_HN(), stateIdle_NODE(), TRIGGER_rx(), and TRIGGER_rx_without().
|
protectedvirtual |
HN transmit a RTS packet to the AUV
References curr_RTS_HN_pck_tx, Mac2PhyStartTx(), mac_addr_AUV_in_trigger, refreshReason(), and UWUFETCH_NODE_STATUS_CHANGE_RTS_TX.
Referenced by state_RTS_tx().

|
protectedvirtual |
HN initialize the BEACON packet that will be forwarded in broadcast at all SNs of the network.
References BEACON_tx(), curr_BEACON_HN_pck_tx, debugMio_, MAX_ALLOWED_CBEACON_TX, hdr_BEACON_UFETCH::num_Max_CBEACON_tx_by_HN(), out_file_logging, print_transitions, printStateInfo(), PT_BEACON_UFETCH, Q_probbed_backoff_time, Q_probbed_mac_HN, Q_probbed_n_pcks_NODE_want_tx_HN, refreshState(), T_MAX_BACKOFF_PROBE, hdr_BEACON_UFETCH::t_max_bc(), T_MIN_BACKOFF_PROBE, hdr_BEACON_UFETCH::t_min_bc(), and UWUFETCH_NODE_STATUS_TRANSMIT_BEACON.
Referenced by BeaconTxTOExpire().

|
protectedvirtual |
HN initialize the CBEACON packet that will be forwarded in broadcast at all SNs of the network.
References CBEACON_tx(), curr_CBEACON_HN_pck_tx, debugMio_, getCBeaconPckTx_by_HN(), out_file_logging, print_transitions, printStateInfo(), PT_CBEACON_UFETCH, Q_probbed_backoff_time, Q_probbed_mac_HN, Q_probbed_n_pcks_NODE_want_tx_HN, refreshState(), T_MAX_BACKOFF_PROBE, hdr_CBEACON_UFETCH::t_max_bc(), T_MIN_BACKOFF_PROBE, hdr_CBEACON_UFETCH::t_min_bc(), txCBEACONEnabled, txRTSbeforeCBEACON, and UWUFETCH_NODE_STATUS_TRANSMIT_BEACON.
Referenced by DATA_rx(), DataTOExpired(), ProbeTOExpired(), state_DATA_HN_finish_tx(), and state_DATA_HN_finish_tx_without().

|
protectedvirtual |
HN has finished to transmit the sequence of DATA packets promises to the AUV with the exchange of previous RTS and CTS packets
References debugMio_, mac_addr_AUV_in_CTS, n_DATA_pck_tx_by_HN, n_TRIGGER_pck_rx_by_HN, out_file_logging, refreshReason(), rxTRIGGEREnabled, sectionCBeacon, state_CBEACON_tx(), state_DATA_HN_finish_tx_without(), stateIdle_HN(), txBEACONEnabled, txDATAEnabledHN, typeCommunication(), UWUFETCH_NODE_STATUS_CHANGE_HN_FINISH_TX_DATA_PCK_TO_AUV_RETURN_CBEACON_TX, and UWUFETCH_NODE_STATUS_CHANGE_HN_TX_ALL_DATA_TO_AUV.
Referenced by Phy2MacEndTx_HN().

|
protectedvirtual |
HN has finished to transmit the sequence of DATA packets to the AUV. In this case the communication between HN and AUV take place without RTS and CTS packets
References debugMio_, mac_addr_AUV_in_trigger, n_DATA_pck_tx_by_HN, n_TRIGGER_pck_rx_by_HN, out_file_logging, refreshReason(), rxTRIGGEREnabled, sectionCBeacon, state_CBEACON_tx(), stateIdle_HN(), txBEACONEnabled, txDATAEnabledHN, UWUFETCH_NODE_STATUS_CHANGE_HN_FINISH_TX_DATA_PCK_TO_AUV_RETURN_CBEACON_TX, and UWUFETCH_NODE_STATUS_CHANGE_HN_TX_ALL_DATA_TO_AUV.
Referenced by state_DATA_HN_finish_tx().

|
protectedvirtual |
HN initialize the FIRST DATA packet that will be forwarded to the AUV node. In this case the communication between HN and AUV take place with RTS and CTS packets
hdr_uwmphy_modem* modemh = HDR_UWMPHY_MODEM(curr_DATA_HN_pck_tx); modemh->use_burst_data() = 1; if ( getDataPckTx_by_HN() == (max_data_HN_can_tx) ) { modemh->last_packet() = 1; modemh->use_burst_data() = 1; } else { modemh->last_packet() = 0; modemh->use_burst_data() = 1; }
References curr_DATA_HN_pck_tx, DATA_HN_tx(), debugMio_, getDataPckTx_by_HN(), mac_addr_AUV_in_CTS, max_data_HN_can_tx, out_file_logging, Q_data_HN, state_DATA_HN_first_tx_without(), txDATAEnabledHN, and typeCommunication().
Referenced by BCKTOExpired_HN_without(), and CTS_rx().

|
protectedvirtual |
HN initialize the FIRST DATA packet that will be forwarded to the AUV node. In this case the communication between HN and AUV take place without RTS and CTS packets
References burstDATA(), curr_DATA_HN_pck_tx, DATA_HN_tx(), debugMio_, mac_addr_AUV_in_trigger, max_data_HN_can_tx, max_pck_HN_can_tx, out_file_logging, pck_number_id, Q_data_HN, Q_data_source_SN, hdr_uwcbr::sn(), and txDATAEnabledHN.
Referenced by state_DATA_HN_first_tx().

|
protectedvirtual |
HN initialize the second and successive DATA packets that will be forwarded to the AUV node. In this case the communication between HN and AUV take place with RTS and CTS packets
References curr_DATA_HN_pck_tx, DATA_HN_tx(), debugMio_, getDataPckTx_by_HN(), mac_addr_AUV_in_CTS, out_file_logging, Q_data_HN, state_DATA_HN_tx_without(), txDATAEnabledHN, and typeCommunication().
Referenced by DataBeforeTxTOExpired_HN().

|
protectedvirtual |
HN initialize the second and successive DATA packets that will be forwarded to the AUV node. In this case the communication between HN and AUV take place without RTS and CTS packets
References burstDATA(), curr_DATA_HN_pck_tx, DATA_HN_tx(), debugMio_, getDataPckTx_by_HN(), mac_addr_AUV_in_trigger, out_file_logging, pck_number_id, Q_data_HN, Q_data_source_SN, hdr_uwcbr::sn(), and txDATAEnabledHN.
Referenced by state_DATA_HN_tx().

|
protectedvirtual |
SN has finished to transmit the last DATA packet promises with a PROBE packet to a specif HN.
References dataAlreadyTransmitted, debugMio_, getCBeaconPckRx_by_NODE(), mac_addr_HN_in_poll, n_BEACON_pck_rx_by_NODE, n_CBEACON_pck_rx_by_NODE, n_DATA_pck_tx_by_NODE, n_POLL_pck_rx_by_NODE, n_PROBE_pck_tx_by_NODE, num_cbeacon_node_rx, out_file_logging, rxBEACONEnabled, rxCBEACONEnabled, state_wait_CBEACON(), stateIdle_NODE(), and txDATAEnabled.
Referenced by Phy2MacEndTx().

|
protectedvirtual |
SN initialize the FIRST DATA packet that will be forwarded to a specific HN.
References curr_DATA_NODE_pck_tx, DATA_NODE_tx(), debugMio_, mac_addr_HN_in_poll, out_file_logging, Q_data, hdr_uwcbr::sn(), and txDATAEnabled.
Referenced by POLL_rx().

|
protectedvirtual |
SN initialize the second or successive DATA packet that will be forwarded to a specific HN.
References curr_DATA_NODE_pck_tx, DATA_NODE_tx(), debugMio_, getDataPckTx_by_NODE(), mac_addr_HN_in_poll, out_file_logging, Q_data, hdr_uwcbr::sn(), and txDATAEnabled.
Referenced by DataBeforeTxTOExpired().

|
protectedvirtual |
HN initialize the POLL packet that will be forwarded to a specific SN of the network
References curr_POLL_HN_pck_tx, debugMio_, hdr_POLL_UFETCH::mac_addr_Node_polled(), mac_addr_NODE_polled, MAX_PCK_HN_WANT_RX_FROM_NODE, hdr_POLL_UFETCH::num_DATA_pcks_MAX_rx(), number_data_pck_HN_rx_exact, out_file_logging, POLL_tx(), print_transitions, printStateInfo(), PT_POLL_UFETCH, Q_probbed_mac_HN, Q_probbed_n_pcks_NODE_want_tx_HN, refreshState(), txPOLLEnabled, and UWUFETCH_NODE_STATUS_POLL_TX.
Referenced by DATA_rx(), DataTOExpired(), PROBE_rx(), and ProbeTOExpired().

|
protectedvirtual |
SN initialize the PROBE packet that will be forwarded to a specific HN.
References hdr_PROBE_UFETCH::backoff_time_PROBE(), bck_before_tx_probe, curr_PROBE_NODE_pck_tx, dataAlreadyTransmitted, debugMio_, getCBeaconPckRx_by_NODE(), mac_addr_HN_in_beacon, n_BEACON_pck_rx_by_NODE, n_CBEACON_pck_rx_by_NODE, n_DATA_pck_tx_by_NODE, hdr_PROBE_UFETCH::n_DATA_pcks_Node_tx(), n_POLL_pck_rx_by_NODE, n_PROBE_pck_tx_by_NODE, num_cbeacon_node_rx, out_file_logging, print_transitions, printStateInfo(), PROBE_tx(), PT_PROBE_UFETCH, Q_data, refreshState(), rxBEACONEnabled, rxCBEACONEnabled, state_wait_CBEACON(), stateIdle_NODE(), txPROBEEnabled, and UWUFETCH_NODE_STATUS_TRANSMIT_PROBE.
Referenced by BCKTOExpired().

|
protectedvirtual |
HN initialize the RTS packet that will be forwarded to the AUV.
References hdr_RTS_UFETCH::backoff_time_RTS(), bck_before_tx_RTS, curr_RTS_HN_pck_tx, debugMio_, mac_addr_AUV_in_trigger, n_CTS_pck_rx_by_HN, n_DATA_pck_tx_by_HN, n_RTS_pck_tx_by_HN, n_TRIGGER_pck_rx_by_HN, hdr_RTS_UFETCH::num_DATA_pcks(), out_file_logging, print_transitions, printStateInfo(), PT_RTS_UFETCH, Q_data_HN, refreshReason(), refreshState(), RTS_tx(), rxTRIGGEREnabled, stateIdle_HN(), txBEACONEnabled, txRTSEnabled, UWUFETCH_NODE_STATUS_CHANGE_TRIGGER_RX_BUT_HN_NO_DATA_TO_TX, and UWUFETCH_NODE_STATUS_RTS_TRANSMIT.
Referenced by BCKTOExpired_HN().

|
protectedvirtual |
SN wait a CBEACON packet for a pre-established interval time. During this interval time SN is enabled to received a CBEACON packet from HN
References CBEACON_timer, debugMio_, mac_addr_HN_in_beacon, out_file_logging, print_transitions, printStateInfo(), refreshState(), rxBEACONEnabled, rxCBEACONEnabled, uwUFetch_NODE::uwUFetch_NODE_timer::schedule(), and UWUFETCH_NODE_STATUS_WAIT_CBEACON_PACKET.
Referenced by CBEACON_rx(), Phy2MacEndRx(), PollTOExpired(), state_DATA_NODE_finish_tx(), and state_PROBE_tx().

|
protectedvirtual |
HN start to wait a CTS packet for a pre-established time interval. During this interval time Hn is enabled to receive a CTS packet from AUV
References CTS_timer, debugMio_, mac_addr_AUV_in_trigger, out_file_logging, print_transitions, printStateInfo(), refreshState(), rxCTSEnabled, uwUFetch_NODE::uwUFetch_NODE_timer::schedule(), T_CTS, and UWUFETCH_NODE_STATUS_WAIT_CTS_PACKET.
Referenced by Phy2MacEndTx_HN().

|
protectedvirtual |
HN start to wait the FIRST DATA packet from SN. During this interval time the HN is enabled to received DATA packets from a specifical SN.
References data_timeout, DATA_timer, debugMio_, getDataPckRx_by_HN(), getDataTimerValue(), mac_addr_NODE_polled, out_file_logging, print_transitions, printStateInfo(), refreshState(), rxDATAEnabled, uwUFetch_NODE::uwUFetch_NODE_timer::schedule(), and UWUFETCH_NODE_STATUS_WAIT_DATA_NODE.
Referenced by Phy2MacEndTx_HN().

|
protectedvirtual |
HN start to wait the second or successive DATA packet from SN. During this interval time the HN is enabled to received DATA packets from a specifical SN.
References debugMio_, getDataPckRx_by_HN(), mac_addr_NODE_polled, out_file_logging, print_transitions, printStateInfo(), refreshState(), rxCTSEnabled, rxDATAEnabled, rxPROBEEnabled, rxTRIGGEREnabled, txBEACONEnabled, txCBEACONEnabled, txDATAEnabledHN, txPOLLEnabled, txRTSEnabled, and UWUFETCH_NODE_STATUS_WAIT_DATA_NODE.
Referenced by DATA_rx().

|
protectedvirtual |
HN start to wait the second or successive PROBE packet from some SNs. During this interval time the HN is enabled to received more than one PROBE packets.
References debugMio_, getProbePckRx_HN(), out_file_logging, print_transitions, printStateInfo(), Q_probbed_mac_HN, refreshState(), and UWUFETCH_NODE_STATUS_WAIT_PROBE_PACKET.
Referenced by PROBE_rx().

|
protectedvirtual |
SN wait a POLL packet from a specific HN. For an interval time Sn is enabled to receive POLL packets.
References computeTxTime(), debugMio_, mac_addr_HN_in_beacon, out_file_logging, POLL_timer, print_transitions, printStateInfo(), refreshState(), rxPOLLEnabled, uwUFetch_NODE::uwUFetch_NODE_timer::schedule(), T_POLL, UWUFETCH_NODE_PACKET_TYPE_DATA, and UWUFETCH_NODE_STATUS_WAIT_POLL_PACKET.
Referenced by Phy2MacEndTx().

|
protectedvirtual |
HN start to wait the FIRST PROBE packet from some SNs. During this interval time the HN is enabled to received more than one PROBE packets.
References debugMio_, out_file_logging, print_transitions, printStateInfo(), PROBE_timer, refreshState(), rxPROBEEnabled, uwUFetch_NODE::uwUFetch_NODE_timer::schedule(), T_PROBE, and UWUFETCH_NODE_STATUS_WAIT_PROBE_PACKET.
Referenced by Phy2MacEndTx_HN().

|
protectedvirtual |
Idle state for HN. Each variables are resetted
Before to enter in idle state and wait a trigger packet from the HN, or before to start the communication with sensor nodes, HN empty his data queue
Time interval that will expire before that the HN start the initialization of the BEACON packet and its transmission
Time interval that will expire before that the HN start the initialization of the BEACON packet and its transmission
References BeaconBeforeTx_timer, CTSrx, curr_DATA_NODE_pck_tx_HN, debugMio_, incrTotalDataPckRx_by_HN(), incrTotalDataPckTx_by_NODE(), last_reason, MAX_PCK_HN_WANT_RX_FROM_NODE, out_file_logging, print_transitions, printStateInfo(), Q_data, Q_data_HN, refreshState(), rxTRIGGEREnabled, uwUFetch_NODE::uwUFetch_NODE_timer::schedule(), T_START_PROCEDURE_HN_NODE, txBEACONEnabled, UWUFETCH_NODE_STATUS_CHANGE_HN_RX_TRIGGER_FROM_AUV_CORRUPTED, UWUFETCH_NODE_STATUS_CHANGE_HN_TX_ALL_DATA_TO_AUV, UWUFETCH_NODE_STATUS_CHANGE_TO_WAIT_CTS_EXPIRED, UWUFETCH_NODE_STATUS_CHANGE_TRIGGER_RX_BUT_HN_NO_DATA_TO_TX, and UWUFETCH_NODE_STATUS_IDLE.
Referenced by command(), CtsTOExpired(), DATA_rx(), DataTOExpired(), Phy2MacEndRx_HN(), Phy2MacEndRx_HN_without(), ProbeTOExpired(), state_DATA_HN_finish_tx(), state_DATA_HN_finish_tx_without(), and state_RTS_tx().

|
protectedvirtual |
Idle state for SN. Each variables are resetted
References debugMio_, out_file_logging, print_transitions, printStateInfo(), refreshState(), rxBEACONEnabled, and UWUFETCH_NODE_STATUS_IDLE.
Referenced by CBEACON_rx(), CBeaconTOExpired(), command(), Phy2MacEndRx(), PollTOExpired(), state_DATA_NODE_finish_tx(), and state_PROBE_tx().

|
protectedvirtual |
HN has received a TRIGGER packet from AUV. Extract all information contained into It. In this case the communication with take place with RTS and CTS packets
References bck_before_tx_RTS, BCK_timer_rts, BeaconBeforeTx_timer, choiceBackOffTimer_HN(), curr_TRIGGER_HN_pck_rx, debugMio_, mac_addr_AUV_in_trigger, max_pck_HN_can_tx, hdr_TRIGGER_UFETCH::max_pck_want_rx(), out_file_logging, print_transitions, printStateInfo(), refreshState(), rxTRIGGEREnabled, uwUFetch_NODE::uwUFetch_NODE_timer::schedule(), hdr_TRIGGER_UFETCH::t_max(), T_max_bck_RTS, hdr_TRIGGER_UFETCH::t_min(), T_min_bck_RTS, TRIGGER_rx_without(), txBEACONEnabled, typeCommunication(), and UWUFETCH_NODE_STATUS_TRIGGER_RECEIVE.
Referenced by Phy2MacEndRx_HN(), and Phy2MacEndRx_HN_without().

|
protectedvirtual |
HN has received a TRIGGER packet from AUV. Extract all information contained into It. In this case the communication with AUV take place without RTS and CTS packets
References bck_before_tx_data, BCK_timer_data, BeaconBeforeTx_timer, choiceBackOffTimer_HN(), curr_TRIGGER_HN_pck_rx, debugMio_, mac_addr_AUV_in_trigger, max_pck_HN_can_tx, hdr_TRIGGER_UFETCH::max_pck_want_rx(), out_file_logging, print_transitions, printStateInfo(), Q_data_HN, refreshState(), rxTRIGGEREnabled, uwUFetch_NODE::uwUFetch_NODE_timer::schedule(), hdr_TRIGGER_UFETCH::t_max(), T_max_bck_DATA, hdr_TRIGGER_UFETCH::t_min(), T_min_bck_DATA, txBEACONEnabled, and UWUFETCH_NODE_STATUS_TRIGGER_RECEIVE.
Referenced by TRIGGER_rx().

|
protectedvirtual |
Indicate if the communiation between HN and AUV take place with or without RTS and CTS packets
Referenced by BCKTOExpired_HN(), choiceBackOffTimer_HN(), DATA_HN_tx(), Phy2MacEndRx_HN(), state_DATA_HN_finish_tx(), state_DATA_HN_first_tx(), state_DATA_HN_tx(), and TRIGGER_rx().
|
protectedvirtual |
Update the list of the SN from which HN has received the PROBE packets. This update is executed after the transmission of POLL packet to the SN
References mac_addr_NODE_polled, Q_probbed_backoff_time, Q_probbed_mac_HN, and Q_probbed_n_pcks_NODE_want_tx_HN.
Referenced by DATA_rx(), and DataTOExpired().
|
protectedvirtual |
Method used for debug
|
protected |
Time value chosen by the HN and used by It for transmit a DATA packet to the AUV
Referenced by TRIGGER_rx_without().
|
protected |
Backoff time choiced by SN before to transmit a PROBE packet to the HN
Referenced by BEACON_rx(), CBEACON_rx(), and state_PROBE_tx().
|
protected |
Time value choice by the HN and used for transmit a RTS packet to the AUV
Referenced by state_RTS_tx(), and TRIGGER_rx().
|
protected |
Interval time before that the HN transmit his DATA packet to the AUV
Referenced by TRIGGER_rx_without().
|
protected |
Interval time in which HN is enabled to receive PROBE packets from SNs
Referenced by BEACON_rx(), and CBEACON_rx().
|
protected |
Schedule the backoff timeout timer
Referenced by TRIGGER_rx().
|
protected |
Schedule the BEACON timeout timer
Referenced by Phy2MacEndRx_HN(), Phy2MacEndRx_HN_without(), stateIdle_HN(), TRIGGER_rx(), and TRIGGER_rx_without().
|
protected |
Referenced by CBEACON_rx(), Phy2MacEndRx(), and state_wait_CBEACON().
|
protected |
Schedule the CTS timeout timer
Referenced by Phy2MacEndRx_HN(), and state_wait_CTS().
|
protected |
true HN has received a CTS packet after the transmission of RTS
Referenced by BeaconTxTOExpire(), CTS_rx(), CtsTOExpired(), Phy2MacEndRx_HN(), and stateIdle_HN().
|
protected |
Pointer to the BEACON packet that is being transmitted by HN
Referenced by BEACON_tx(), and state_BEACON_tx().
|
protected |
Pointer to the BEACON packet that is being received by SN
Referenced by BEACON_rx(), and Phy2MacEndRx().
|
protected |
Pointer to the CBEACON packet that is being transmitted by HN
Referenced by CBEACON_tx(), and state_CBEACON_tx().
|
protected |
Pointer to the CBEACON packet that is being received by SN
Referenced by CBEACON_rx(), and Phy2MacEndRx().
|
protected |
Pointer to the CTS packet that is being received by HN
Referenced by CTS_rx(), and Phy2MacEndRx_HN().
|
protected |
Pointer to the DATA packet that is being received by HN from SN
Referenced by DATA_rx(), Phy2MacEndRx_HN(), and Phy2MacEndRx_HN_without().
|
protected |
Pointer to the DATA packet that is being transmitted by HN to the AUV
Referenced by DATA_HN_tx(), DATA_HN_tx_without(), state_DATA_HN_first_tx(), state_DATA_HN_first_tx_without(), state_DATA_HN_tx(), and state_DATA_HN_tx_without().
|
protected |
Pointer to the DATA packet that is being transmitted by SN
Referenced by DATA_NODE_tx(), state_DATA_NODE_first_tx(), and state_DATA_NODE_tx().
|
protected |
Pointer to the DATA packet that is being transmitted by HN
Referenced by BeaconTxTOExpire(), Phy2MacEndRx_HN(), Phy2MacEndRx_HN_without(), and stateIdle_HN().
|
protected |
Pointer to the POLL packet that is being transmitted by HN
Referenced by POLL_tx(), and state_POLL_tx().
|
protected |
Pointer to the POLL packet that is being received by SN
Referenced by Phy2MacEndRx(), and POLL_rx().
|
protected |
Pointer to the PROBE packet that is being received by HN
Referenced by Phy2MacEndRx_HN(), and PROBE_rx().
|
protected |
Pointer to the PROBE packet that is being transmitted by SN
Referenced by PROBE_tx(), and state_PROBE_tx().
|
protected |
Pointer to the RTS packet that is being transmitted by HN
Referenced by RTS_tx(), and state_RTS_tx().
|
protected |
Current state in which the SN or HN is located
Referenced by printStateInfo(), and refreshState().
|
protected |
Pointer to the TRIGGER packet that is being received by HN
Referenced by Phy2MacEndRx_HN(), Phy2MacEndRx_HN_without(), TRIGGER_rx(), and TRIGGER_rx_without().
|
protected |
Referenced by Phy2MacEndTx(), and Phy2MacEndTx_HN().
|
protected |
Interval time in which the HN want to receive all DATA packets from the node that have polled
Referenced by state_wait_first_DATA().
|
protected |
Schedule the DATA timeout timer
Referenced by DATA_rx(), and state_wait_first_DATA().
|
protected |
Indicate whether the SN has transmit at least one DATA packets during the cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
Referenced by CBEACON_rx(), CBeaconTOExpired(), Phy2MacEndRx(), Phy2MacEndTx(), PollTOExpired(), state_DATA_NODE_finish_tx(), and state_PROBE_tx().
|
protected |
Used if we want to create the logging file
Referenced by BCKTOExpired(), BCKTOExpired_HN(), BCKTOExpired_HN_without(), BEACON_rx(), BeaconTxTOExpire(), CBEACON_rx(), CBeaconTOExpired(), command(), CTS_rx(), CtsTOExpired(), DATA_rx(), DataTOExpired(), Mac2PhyStartTx(), Mac2PhyStartTx_HN(), Phy2MacEndRx(), Phy2MacEndRx_HN(), Phy2MacEndRx_HN_without(), Phy2MacEndTx(), Phy2MacEndTx_HN(), Phy2MacStartRx(), Phy2MacStartRx_HN(), POLL_rx(), PollTOExpired(), PROBE_rx(), ProbeTOExpired(), recvFromUpperLayers(), recvFromUpperLayers_HN(), state_BEACON_tx(), state_CBEACON_tx(), state_DATA_HN_finish_tx(), state_DATA_HN_finish_tx_without(), state_DATA_HN_first_tx(), state_DATA_HN_first_tx_without(), state_DATA_HN_tx(), state_DATA_HN_tx_without(), state_DATA_NODE_finish_tx(), state_DATA_NODE_first_tx(), state_DATA_NODE_tx(), state_POLL_tx(), state_PROBE_tx(), state_RTS_tx(), state_wait_CBEACON(), state_wait_CTS(), state_wait_first_DATA(), state_wait_other_DATA(), state_wait_other_PROBE(), state_wait_POLL(), state_wait_PROBE(), stateIdle_HN(), stateIdle_NODE(), TRIGGER_rx(), TRIGGER_rx_without(), and uwUFetch_NODE().
|
protected |
Variable that handle the file in which the protocol write the state transition for debug purposes
Referenced by command(), and printStateInfo().
|
protected |
Indicate if the node work as HEAD NODE or SENSOR NODE
Referenced by command(), and isHeadNode().
|
staticprotected |
Indicate if the protocol has been initialized or not
Referenced by command(), and initInfo().
|
protected |
Last reason because the SN or HN change its state
Referenced by printStateInfo(), refreshReason(), and stateIdle_HN().
|
protected |
AUV-MAC address contained int the CTS packet received by HN
Referenced by CTS_rx(), DATA_HN_tx(), Mac2PhyStartTx_HN(), Phy2MacEndTx_HN(), state_DATA_HN_finish_tx(), state_DATA_HN_first_tx(), and state_DATA_HN_tx().
|
protected |
AUV-MAC address contained in the TRIGGER packet received by the HN
Referenced by computeTxTime_HN(), DATA_HN_tx_without(), Mac2PhyStartTx_HN(), Phy2MacEndRx_HN(), Phy2MacEndRx_HN_without(), Phy2MacEndTx_HN(), RTS_tx(), state_DATA_HN_finish_tx_without(), state_DATA_HN_first_tx_without(), state_DATA_HN_tx_without(), state_RTS_tx(), state_wait_CTS(), TRIGGER_rx(), and TRIGGER_rx_without().
|
protected |
HN MAC address from which the SN has received PROBE packet
Referenced by BEACON_rx(), CBEACON_rx(), CBeaconTOExpired(), computeTxTime(), Mac2PhyStartTx(), Phy2MacEndRx(), Phy2MacEndTx(), PollTOExpired(), PROBE_tx(), state_PROBE_tx(), state_wait_CBEACON(), and state_wait_POLL().
|
protected |
HN MAC address from which the SN has received the CBEACON packet
Referenced by CBEACON_rx(), and Phy2MacEndRx().
|
protected |
HN MAC address from which the SN has received the POLL packet
Referenced by DATA_NODE_tx(), Phy2MacEndTx(), POLL_rx(), state_DATA_NODE_finish_tx(), state_DATA_NODE_first_tx(), and state_DATA_NODE_tx().
|
protected |
Mac address of the node from which the HN has received a DATA packet
Referenced by DATA_rx().
|
protected |
SN-MAC address of the node that the HN is going to be poll and from which It want to receive DATA packets
Referenced by computeTxTime_HN(), DataTOExpired(), Mac2PhyStartTx_HN(), Phy2MacEndTx_HN(), POLL_tx(), state_POLL_tx(), state_wait_first_DATA(), state_wait_other_DATA(), and updateListProbbedNode().
|
protected |
Referenced by DATA_rx(), DataTOExpired(), ProbeTOExpired(), state_BEACON_tx(), and uwUFetch_NODE().
|
protected |
Maximum number of DATA packets that the HN must transmit to the AUV
Referenced by CTS_rx(), Phy2MacEndTx_HN(), state_DATA_HN_first_tx(), and state_DATA_HN_first_tx_without().
|
protected |
Maximum size of payload DATA packet
Referenced by computeTxTime(), computeTxTime_HN(), and uwUFetch_NODE().
|
protected |
Maximum number of DATA packets that AUV want to receive from HN
Referenced by state_DATA_HN_first_tx_without(), TRIGGER_rx(), and TRIGGER_rx_without().
|
protected |
Referenced by BeaconTxTOExpire(), getDataTimerValue(), Phy2MacEndRx_HN(), Phy2MacEndRx_HN_without(), state_POLL_tx(), stateIdle_HN(), and uwUFetch_NODE().
|
protected |
Maximum number of PROBE packets that the HN can receive from the SN after the transmission of a BEACON or CBEACON
Referenced by PROBE_rx(), and uwUFetch_NODE().
|
protected |
Maximum number of DATA packets that the SN can store in Its queue
Referenced by recvFromUpperLayers(), recvFromUpperLayers_HN(), and uwUFetch_NODE().
|
protected |
Indicate if it's used or not the burst data. 0=not use burst date, 1=use burst data.
Referenced by burstDATA(), and uwUFetch_NODE().
|
protected |
Indicate the type of communication between HN and AUV, 0 = communication with RTS-CTS, 1 = communication without RTS-CTS
Referenced by uwUFetch_NODE().
|
protected |
Number of BEACON receive by the SN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
Referenced by CBEACON_rx(), CBeaconTOExpired(), getBeaconPckRx_by_NODE(), incrBeaconPckRx_by_NODE(), Phy2MacEndRx(), PollTOExpired(), state_DATA_NODE_finish_tx(), and state_PROBE_tx().
|
protected |
Number of BEACON packet transmitted by the HN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
Referenced by DATA_rx(), DataTOExpired(), getBeaconTx_by_HN(), incrBeaconPckTx_by_HN(), and ProbeTOExpired().
|
protected |
Number of CBEACON received by the SN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
Referenced by CBEACON_rx(), CBeaconTOExpired(), getCBeaconPckRx_by_NODE(), incrCBeaconPckRx_by_NODE(), Phy2MacEndRx(), PollTOExpired(), state_DATA_NODE_finish_tx(), and state_PROBE_tx().
|
protected |
Number of CBEACON packet transmitted by the HN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
Referenced by DATA_rx(), DataTOExpired(), getCBeaconPckTx_by_HN(), incrCBeaconPckTx_by_HN(), and ProbeTOExpired().
|
protected |
Number of CTS packet received by the HN during a single cycle TRIGGER-RTS-CTS-DATA of the simulation
Referenced by CtsTOExpired(), getCtsPckRx_HN(), incrCtsPckRx_HN(), Phy2MacEndRx_HN(), and state_RTS_tx().
|
protected |
Number of DATA packet received by the HN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
Referenced by DATA_rx(), DataTOExpired(), getDataPckRx_by_HN(), incrDataPckRx_by_HN(), and ProbeTOExpired().
|
protected |
Number of DATA packet transmitted by the HN during a single cycle TRIGGER-RTS-CTS-DATA of the simulation
Referenced by getDataPckTx_by_HN(), incrDataPckTx_by_HN(), Phy2MacEndRx_HN(), state_DATA_HN_finish_tx(), state_DATA_HN_finish_tx_without(), and state_RTS_tx().
|
protected |
Number of DATA transmitted by the SN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
Referenced by CBEACON_rx(), CBeaconTOExpired(), getDataPckTx_by_NODE(), incrDataPckTx_by_NODE(), Phy2MacEndRx(), PollTOExpired(), state_DATA_NODE_finish_tx(), and state_PROBE_tx().
|
protected |
Number of POLL received by the SN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
Referenced by CBEACON_rx(), CBeaconTOExpired(), getPollPckRx_by_NODE(), incrPollPckRx_by_NODE(), Phy2MacEndRx(), PollTOExpired(), state_DATA_NODE_finish_tx(), and state_PROBE_tx().
|
protected |
Number of POLL packet transmitted by the HN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
Referenced by DATA_rx(), DataTOExpired(), getPollPckTx_by_HN(), incrPollPckTx_by_HN(), and ProbeTOExpired().
|
protected |
Number of PROBE packet received by the HN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
Referenced by DATA_rx(), DataTOExpired(), getProbePckRx_HN(), incrProbePckRx_HN(), and ProbeTOExpired().
|
protected |
Number of PROBE transmitted by the SN during a single cycle BEACON-PROBE-POLL-DATA-CBEACON of the simulation
Referenced by CBEACON_rx(), CBeaconTOExpired(), getProbePckTx_by_NODE(), incrProbePckTx_by_NODE(), Phy2MacEndRx(), PollTOExpired(), state_DATA_NODE_finish_tx(), and state_PROBE_tx().
|
protected |
Number of RTS packet transmitted by the HN during a single cycle TRIGGER-RTS-CTS-DATA of the simulation
Referenced by CtsTOExpired(), getRtsPckTx_by_HN(), incrRtsPckTx_by_HN(), Phy2MacEndRx_HN(), and state_RTS_tx().
|
protected |
Indicate the number of the run in execution
Referenced by command(), and uwUFetch_NODE().
|
protected |
Total number of BEACON packets received correctly or not by SN during an entire duration of simulation
Referenced by getTotalBeaconPckRx_by_NODE(), and incrTotalBeaconPckRx_by_NODE().
|
protected |
Total number of BEACON packets received corrupted by SN during an entire duration of simulation
Referenced by getTotalBeaconPckRx_corrupted_by_NODE(), and incrTotalBeaconPckRx_corrupted_by_NODE().
|
protected |
Total number of BEACON packets transmitted by the HN during an entire simulation
Referenced by getTotalBeaconTx_by_HN(), and incrTotalBeaconPckTx_by_HN().
|
protected |
Total number of CBEACON packets received correctly or not by SN during an entire duration of simulation
Referenced by getTotalCBeaconPckRx_by_NODE(), and incrTotalCBeaconPckRx_by_NODE().
|
protected |
Total number of CBEACON packets received corrupted by the SN during an entire duration of simulation
Referenced by getTotalCBeaconPckRx_corrupted_by_NODE(), and incrTotalCBeaconPckRx_corrupted_by_NODE().
|
protected |
Total number of CBEACON packets transmitted by the HN during an entire simulation
Referenced by getTotalCBeaconPckTx_by_HN(), and incrTotalCBeaconPckTx_by_HN().
|
protected |
Total number of CTS packets correctly or not received by the HN during an entire simulation
Referenced by getTotalCtsPckRx_HN(), and incrTotalCtsPckRx_HN().
|
protected |
Total number of corrupted CTS packets received by the HN during an entire simulation
Referenced by getTotalCtsPckRx_corrupted_HN(), and incrTotalCtsPckRx_corrupted_HN().
|
protected |
Total number of DATA packets correctly or not received by the HN during an entire simulation
Referenced by getTotalDataPckRx_by_HN(), and incrTotalDataPckRx_by_HN().
|
protected |
Total number of corrupted DATA packets received by the HN during an entire simulation
Referenced by getTotalDataPckRx_corrupted_by_HN(), and incrTotalDataPckRx_corrupted_by_HN().
|
protected |
Total number of DATA packets transmitted by the HN during an entire simulation
Referenced by getTotalDataPckTx_by_HN(), and incrTotalDataPckTx_by_HN().
|
protected |
Total number of DATA packets transmitted by the SN during an entire duration of simulation
Referenced by getTotalDataPckTx_by_NODE(), and incrTotalDataPckTx_by_NODE().
|
protected |
Total number of POLL packets received correctly or not by SN during an entire duration of simulation
Referenced by getTotalPollPckRx_by_NODE(), and incrTotalPollPckRx_by_NODE().
|
protected |
Total number of POLL packets received corrupted by SN during an entire duration of simulation
Referenced by getTotalPollPckRx_corrupted_by_NODE(), and incrTotalPollPckRx_corrupted_by_NODE().
|
protected |
Total number of POLL packets transmitted by the HN during an entire simulation
Referenced by getTotalPollPckTx_by_HN(), and incrTotalPollPckTx_by_HN().
|
protected |
Total number of corrupted PROBE packets received by the HN during an entire simulation
Referenced by getTotalProbePckRx_corrupted_HN(), and incrTotalProbePckRx_corrupted_HN().
|
protected |
Total number of PROBE packets correctly or not received by the HN during an entire simulation
Referenced by getTotalProbePckRx_HN(), and incrTotalProbePckRx_HN().
|
protected |
Total number of PROBE packets transmitted by SN during an entire duration of simulation
Referenced by getTotalProbePckTx_by_NODE(), and incrTotalProbePckTx_by_NODE().
|
protected |
Total number of RTS packets transmitted by the HN during an entire simulation
Referenced by getTotalRtsPckTx_by_HN(), and incrTotalRtsPckTx_by_HN().
|
protected |
Total number of TRIGGER packets correctly or not received by the HN during an entire simulation
Referenced by getTotalTriggerPckRx_HN(), and incrTotalTriggerPckRx_HN().
|
protected |
Total number of corrupted TRIGGER packets received by the HN during an entire simulation
Referenced by getTotalTriggerPckRx_corrupted_HN(), and incrTotalTriggerPckRx_corrupted_HN().
|
protected |
Number of TRIGGER packet received by the HN during a single cycle TRIGGER-RTS-CTS-DATA of the simulation
Referenced by CtsTOExpired(), getTriggerPckRx_HN(), incrTriggerPckRx_HN(), Phy2MacEndRx_HN(), state_DATA_HN_finish_tx(), state_DATA_HN_finish_tx_without(), and state_RTS_tx().
|
protected |
NUmber of CBEACON packets transmitted by the HN during the single cycle BEACON-PROBE-POLL-DATA-CBEACON
Referenced by CBEACON_rx().
|
protected |
Number of CBEACON that the node have received from the specific HN before to receive an another BEACON packet
Referenced by BEACON_rx(), CBEACON_rx(), Phy2MacEndRx(), PollTOExpired(), state_DATA_NODE_finish_tx(), and state_PROBE_tx().
|
protected |
Number of DATA packets that the SN at the instant time of BEACON reception has available to transmit to the HN
Referenced by Phy2MacEndRx(), Phy2MacEndTx(), and POLL_rx().
|
protected |
Exact number of DATA packets that the HN want to receive from the SN that have polled
Referenced by DATA_rx(), getDataTimerValue(), and state_POLL_tx().
|
protected |
Variable that handle the file in which the protocol write the statistics
Referenced by BCKTOExpired(), BCKTOExpired_HN(), BCKTOExpired_HN_without(), BEACON_rx(), BeaconTxTOExpire(), CBEACON_rx(), CBeaconTOExpired(), command(), CTS_rx(), CtsTOExpired(), DATA_rx(), DataTOExpired(), Mac2PhyStartTx(), Mac2PhyStartTx_HN(), Phy2MacEndRx(), Phy2MacEndRx_HN(), Phy2MacEndRx_HN_without(), Phy2MacEndTx(), Phy2MacEndTx_HN(), Phy2MacStartRx(), Phy2MacStartRx_HN(), POLL_rx(), PollTOExpired(), PROBE_rx(), ProbeTOExpired(), recvFromUpperLayers(), recvFromUpperLayers_HN(), state_BEACON_tx(), state_CBEACON_tx(), state_DATA_HN_finish_tx(), state_DATA_HN_finish_tx_without(), state_DATA_HN_first_tx(), state_DATA_HN_first_tx_without(), state_DATA_HN_tx(), state_DATA_HN_tx_without(), state_DATA_NODE_finish_tx(), state_DATA_NODE_first_tx(), state_DATA_NODE_tx(), state_POLL_tx(), state_PROBE_tx(), state_RTS_tx(), state_wait_CBEACON(), state_wait_CTS(), state_wait_first_DATA(), state_wait_other_DATA(), state_wait_other_PROBE(), state_wait_POLL(), state_wait_PROBE(), stateIdle_HN(), stateIdle_NODE(), TRIGGER_rx(), and TRIGGER_rx_without().
|
staticprotected |
Map the UWUFETCH_NODE_PACKET_TYPE to the description of packet type
Referenced by initInfo().
|
protected |
Unique identifier of the DATA packet received
Referenced by state_DATA_HN_first_tx_without(), and state_DATA_HN_tx_without().
|
protected |
Interval time in which SN is enabled to receive POLL packet from the specific HN
Referenced by CBEACON_rx(), Phy2MacEndRx(), and state_wait_POLL().
|
protected |
Previous state in which the SN or HN it was located
Referenced by printStateInfo(), and refreshState().
|
protected |
true if the writing of state transitions in the file is enabled.
Referenced by BEACON_rx(), CBEACON_rx(), command(), CTS_rx(), DATA_rx(), initInfo(), POLL_rx(), PROBE_rx(), state_BEACON_tx(), state_CBEACON_tx(), state_POLL_tx(), state_PROBE_tx(), state_RTS_tx(), state_wait_CBEACON(), state_wait_CTS(), state_wait_first_DATA(), state_wait_other_DATA(), state_wait_other_PROBE(), state_wait_POLL(), state_wait_PROBE(), stateIdle_HN(), stateIdle_NODE(), TRIGGER_rx(), and TRIGGER_rx_without().
|
protected |
0 reason because the SN or HN is passed from a state to another state is not logged in a file
Referenced by uwUFetch_NODE().
|
protected |
Schedule the PROBE timeout timer
Referenced by PROBE_rx(), and state_wait_PROBE().
|
protected |
Queue of DATA packets stored by the SN
Referenced by BeaconTxTOExpire(), Phy2MacEndRx_HN(), Phy2MacEndRx_HN_without(), recvFromUpperLayers(), recvFromUpperLayers_HN(), state_DATA_NODE_first_tx(), state_DATA_NODE_tx(), state_PROBE_tx(), and stateIdle_HN().
|
protected |
Queue of DATA packets stored by the HNs and received from SN
Referenced by BeaconTxTOExpire(), DATA_rx(), Phy2MacEndRx_HN(), Phy2MacEndRx_HN_without(), state_DATA_HN_first_tx(), state_DATA_HN_first_tx_without(), state_DATA_HN_tx(), state_DATA_HN_tx_without(), state_RTS_tx(), stateIdle_HN(), and TRIGGER_rx_without().
|
protected |
Queue that contain the MAC address from which the HN has received the DATA packet
Referenced by state_DATA_HN_first_tx_without(), and state_DATA_HN_tx_without().
|
protected |
Queue that stored the backoff time choice by the single nodes before to transmit the PROBE packet to the HN
Referenced by PROBE_rx(), state_BEACON_tx(), state_CBEACON_tx(), and updateListProbbedNode().
|
protected |
Queue that store the MAC address of the SN from which the HN has received correctly the PROBE packets
Referenced by DATA_rx(), DataTOExpired(), PROBE_rx(), ProbeTOExpired(), state_BEACON_tx(), state_CBEACON_tx(), state_POLL_tx(), state_wait_other_PROBE(), and updateListProbbedNode().
|
protected |
Queue that store the number of DATA packets that the single SN want to tx to the HN.
Referenced by getDataTimerValue(), PROBE_rx(), state_BEACON_tx(), state_CBEACON_tx(), state_POLL_tx(), and updateListProbbedNode().
|
protected |
Round trip time value
Referenced by getDataTimerValue(), and getRTT().
|
protected |
Indicates when SN finished the reception of BEACON packet from HN
Referenced by Phy2MacEndRx().
|
protected |
Indicates when SN started the reception of BEACON packet from HN
Referenced by Phy2MacStartRx().
|
protected |
Indicates when SN finished the reception of BEACON packet from HN
|
protected |
Indicates when SN started the reception of CBEACON packet from HN
Referenced by Phy2MacStartRx().
|
protected |
Indicates when HN finished the reception of CTS packet from the SNs
Referenced by Phy2MacEndRx_HN().
|
protected |
Indicates when HN started the reception of CTS packet from the AUV
Referenced by Phy2MacStartRx_HN().
|
protected |
Indicates when HN finished the reception of DATA packet from the SNs
Referenced by Phy2MacEndRx_HN(), and Phy2MacEndRx_HN_without().
|
protected |
Indicates when HN started the reception of DATA packet from the SNs
Referenced by Phy2MacStartRx_HN().
|
protected |
Indicates when SN finished the reception of POLL packet from HN
Referenced by Phy2MacEndRx().
|
protected |
Indicates when SN started the reception of POLL packet from HN
Referenced by Phy2MacStartRx().
|
protected |
Indicates when HN finished the reception of PROBE packet from the SNs
Referenced by getRTT(), and Phy2MacEndRx_HN().
|
protected |
Indicates when HN started the reception of PROBE packet from the SNs
Referenced by Phy2MacStartRx_HN().
|
protected |
Indicates when HN finished the reception of TRIGGER packet from the AUV
Referenced by Phy2MacEndRx_HN(), and Phy2MacEndRx_HN_without().
|
protected |
Indicates when HN started the reception of TRIGGER packet from the AUV
Referenced by Phy2MacStartRx_HN().
|
protected |
true if SN is enabled to receive a BEACON packet from the HN
Referenced by BEACON_rx(), CBEACON_rx(), CBeaconTOExpired(), Phy2MacEndRx(), Phy2MacEndTx(), Phy2MacStartRx(), PollTOExpired(), state_DATA_NODE_finish_tx(), state_PROBE_tx(), state_wait_CBEACON(), and stateIdle_NODE().
|
protected |
true if SN is enabled to receive a CBEACON packet from the HN
Referenced by CBEACON_rx(), CBeaconTOExpired(), Phy2MacEndRx(), PollTOExpired(), state_DATA_NODE_finish_tx(), state_PROBE_tx(), and state_wait_CBEACON().
|
protected |
true if HN is enabled to receive a CTS packet from the AUV
Referenced by CTS_rx(), CtsTOExpired(), DataTOExpired(), Phy2MacEndRx_HN(), state_wait_CTS(), and state_wait_other_DATA().
|
protected |
true if HN is enabled to receive a DATA packet from teh SN
Referenced by CtsTOExpired(), DATA_rx(), DataTOExpired(), state_wait_first_DATA(), and state_wait_other_DATA().
|
protected |
true if SN is enabled to receive a POLL packet from the HN
Referenced by CBEACON_rx(), CBeaconTOExpired(), Phy2MacEndRx(), POLL_rx(), PollTOExpired(), and state_wait_POLL().
|
protected |
true if HN is enabled to receive a PROBE packet from the SN
Referenced by CtsTOExpired(), DataTOExpired(), Phy2MacEndRx_HN(), PROBE_rx(), ProbeTOExpired(), state_wait_other_DATA(), and state_wait_PROBE().
|
protected |
true if HN is enabled to receive a TRIGGER packet from the AUV
Referenced by BeaconTxTOExpire(), CtsTOExpired(), DATA_rx(), DataTOExpired(), Phy2MacEndRx_HN(), Phy2MacEndRx_HN_without(), ProbeTOExpired(), state_DATA_HN_finish_tx(), state_DATA_HN_finish_tx_without(), state_RTS_tx(), state_wait_other_DATA(), stateIdle_HN(), TRIGGER_rx(), and TRIGGER_rx_without().
|
protected |
true HN has started the transmission of RTS packet when It was in the CBEACON section.
Referenced by state_DATA_HN_finish_tx(), and state_DATA_HN_finish_tx_without().
|
staticprotected |
Map the UWUFETCH_NODE_STATUS_CHANGE to the description the reason of changing state
Referenced by initInfo(), and printStateInfo().
|
staticprotected |
Map the UWUFETCH_NODE_STATUS to the description of each state
Referenced by initInfo(), and printStateInfo().
|
staticprotected |
Map the UWUFETCH_TIMER_STATUS to the description of the timers
Referenced by initInfo().
|
protected |
Referenced by CtsTOExpired(), state_wait_CTS(), and uwUFetch_NODE().
|
protected |
Guard interval used for successive transmission of DATA packets
Referenced by getDataTimerValue(), Phy2MacEndRx(), and uwUFetch_NODE().
|
protected |
Upper bound timer interval of back-off value used by the SN to choice its back-off time before to transmit a PROBE packet
Referenced by state_BEACON_tx(), state_CBEACON_tx(), and uwUFetch_NODE().
|
protected |
Upper bound time interval from which the HN choice its backoff timer before to transmit a DATA packet to the AUV
Referenced by choiceBackOffTimer_HN(), and TRIGGER_rx_without().
|
protected |
Upper bound timer interval used by the SN to choice the interval time before to transmit a PROBE packet to the HN
Referenced by BEACON_rx(), CBEACON_rx(), and choiceBackOffTimer().
|
protected |
Upper bound interval time from which the HN choice his backoff timer before to transmit a RTS packet to the AUV
Referenced by choiceBackOffTimer_HN(), and TRIGGER_rx().
|
protected |
Lower bound timer interval of back-off value used by the SN to choice its back-off time before to transmit a PROBE packet
Referenced by state_BEACON_tx(), state_CBEACON_tx(), and uwUFetch_NODE().
|
protected |
Lower bound time interval from which the HN choice its backoff timer before to transmit a DATA packet to the AUV
Referenced by choiceBackOffTimer_HN(), and TRIGGER_rx_without().
|
protected |
Lower bound timer interval used by the SN to choice the interval time before to transmit a PROBE packet to the HN
Referenced by BEACON_rx(), CBEACON_rx(), and choiceBackOffTimer().
|
protected |
Lower bound interval time from which the HN choice its backoff timer before to transmit a RTS packet to the AUV
Referenced by choiceBackOffTimer_HN(), and TRIGGER_rx().
|
protected |
Interval time in which the SN wait a POLL packet from the HN
Referenced by Phy2MacEndRx(), state_wait_POLL(), and uwUFetch_NODE().
|
protected |
Interval time in which HN is enabled to received PROBE packets from SNs after the transmission of TRIGGER packet
Referenced by state_wait_PROBE(), and uwUFetch_NODE().
|
protected |
Time within HN is enabled to received a TRIGGER packet from AUV. If in this time the AUV never receive a TRIGGER packet start the communication with the SN
Referenced by stateIdle_HN(), and uwUFetch_NODE().
|
protected |
Time needed to transmit a BEACON packet. It consider also a propagation delay.
|
protected |
Time needed to transmit a DATA packet. It consider also a propagation delay.
Referenced by computeTxTime_HN(), and getDataTimerValue().
|
protected |
Time to transmit a DATA packet by the HN
Referenced by Mac2PhyStartTx_HN(), and Phy2MacEndTx_HN().
|
protected |
Time duration needed for SN to transmit a DATA packet to the HN. It include the time delay propagation.
Referenced by computeTxTime().
|
protected |
Time duration need for SN for transmit a DATA packet to the HN
Referenced by Mac2PhyStartTx(), and Phy2MacEndTx().
|
protected |
Interval time used by HN before to transmit the next DATA packet to the AUV
Referenced by Mac2PhyStartTx_HN(), and uwUFetch_NODE().
|
protected |
Interval time used by the SN before to transmit the next DATA packet to the HN
Referenced by Mac2PhyStartTx(), and uwUFetch_NODE().
|
protected |
Time needed to transmit a POLL packet. It consider also a propagation delay.
Referenced by computeTxTime_HN().
|
protected |
Time duration needed for SN to transmit a PROBE packet to the HN. It include the time delay propagation.
Referenced by computeTxTime().
|
protected |
Time needed to transmit a RTS packet. It consider also a propagation delay.
|
protected |
Indicates when HN finished the transmission of BEACON packet to the SNs
Referenced by Phy2MacEndTx_HN().
|
protected |
Indicates when HN started the transmission of BEACON packet to the SNs
Referenced by getRTT(), and Mac2PhyStartTx_HN().
|
protected |
Indicates when HN finished the transmission of CBEACON packet to the SNs
Referenced by Phy2MacEndTx_HN().
|
protected |
Indicates when HN started the transmission of CBEACON packet to the SNs
Referenced by getRTT(), and Mac2PhyStartTx_HN().
|
protected |
Indicates when HN finished the transmission of DATA packet to the AUV
Referenced by Phy2MacEndTx_HN().
|
protected |
Indicates when SN finished a transmission of DATA packet to the HN
Referenced by Phy2MacEndTx().
|
protected |
Indicates when HN started the transmission of DATA packet to the AUV
Referenced by Mac2PhyStartTx_HN().
|
protected |
Indicates when SN start a transmission of DATA packet to the HN
Referenced by Mac2PhyStartTx().
|
protected |
Indicates when HN finished the transmission of POLL packet to a specific SN
Referenced by Phy2MacEndTx_HN().
|
protected |
Indicates when HN started the transmission of POLL packet to a specific SN
Referenced by Mac2PhyStartTx_HN().
|
protected |
Indicates when SN finished a transmission of PROBE packet
Referenced by Phy2MacEndTx().
|
protected |
Indicates when SN start a transmission of PROBE packet
Referenced by Mac2PhyStartTx().
|
protected |
Indicates when HN finished the transmission of RTS packet to the AUV
Referenced by Phy2MacEndTx_HN().
|
protected |
Indicates when HN started the transmission of RTS packet to the AUV
Referenced by Mac2PhyStartTx_HN().
|
protected |
true if HN is enabled to transmit a BEACON packet to the SN
Referenced by BeaconTxTOExpire(), CtsTOExpired(), DATA_rx(), DataTOExpired(), Phy2MacEndTx_HN(), ProbeTOExpired(), state_DATA_HN_finish_tx(), state_DATA_HN_finish_tx_without(), state_RTS_tx(), state_wait_other_DATA(), stateIdle_HN(), TRIGGER_rx(), and TRIGGER_rx_without().
|
protected |
true if HN is enabled to transmit a CBEACON packet to the SN
Referenced by CtsTOExpired(), DATA_rx(), DataTOExpired(), Phy2MacEndTx_HN(), ProbeTOExpired(), state_CBEACON_tx(), and state_wait_other_DATA().
|
protected |
true if SN is enabled to transmit a DATA packet to the HN
Referenced by CBEACON_rx(), CBeaconTOExpired(), Phy2MacEndRx(), PollTOExpired(), state_DATA_NODE_finish_tx(), state_DATA_NODE_first_tx(), and state_DATA_NODE_tx().
|
protected |
true if HN is enabled to transmit a DATA packet to the AUV
Referenced by CtsTOExpired(), DataTOExpired(), state_DATA_HN_finish_tx(), state_DATA_HN_finish_tx_without(), state_DATA_HN_first_tx(), state_DATA_HN_first_tx_without(), state_DATA_HN_tx(), state_DATA_HN_tx_without(), and state_wait_other_DATA().
|
protected |
true if HN is enabled to transmit a POLL packet to the SN
Referenced by CtsTOExpired(), DATA_rx(), DataTOExpired(), Phy2MacEndTx_HN(), state_POLL_tx(), and state_wait_other_DATA().
|
protected |
true if SN is enabled to transmit a PROBE packet to the HN
Referenced by CBEACON_rx(), CBeaconTOExpired(), Phy2MacEndRx(), Phy2MacEndTx(), and state_PROBE_tx().
|
protected |
true HN block the transmission of CBEACON because It try to communicate with the AUV.
Referenced by state_CBEACON_tx().
|
protected |
true if HN is enabled to transmit a RTS packet to the AUV
Referenced by CtsTOExpired(), DataTOExpired(), Phy2MacEndTx_HN(), state_RTS_tx(), and state_wait_other_DATA().