54typedef std::map<int, int>
Slot;
88 virtual int command(
int argc,
const char *
const *argv);
UwTDMATimer class is used to handle the scheduling period of UWTDMA slots.
Class that represents a TDMA_frame MAC layer of a Node.
Slot::iterator getCurrentSlot()
virtual void changeStatus()
Alternate TDMA status between MY_STATUS and NOT_MY_STATUS.
SlotTopology s_
matrix cointaining the transmission schedule of all the network
virtual ~UwTDMA_frame()
Destructor of the TDMA_frame class.
int topology_index
index in the topology matrix
string topology_S_file_name_
Topology S file name.
virtual void initializeTopologyS()
Initialize the topology S 2D matrix from file.
char topology_S_token_separator_
character used as token separator when importing the S topology from file
UwTDMA_frame()
Constructor of the TDMA_frame class.
Slot::iterator getNextMySlot(int skip=0)
int tot_nodes
total number of nodes in the network
int my_slots_counter
count the passed number of slots in which it was active
Slot my_slot_numbers_
set the position of the node in the frame (fair_mode) (starting from 0 to tot_slots-1)
int max_packet_per_slot
max numer of packet it can transmit per slot
virtual int command(int argc, const char *const *argv)
TCL command interpreter.
int packet_sent_curr_slot_
counter of packet has been sent in the current slot
Class that represents a TDMA Node.
std::map< int, int > Slot
std::map< int, Slot > SlotTopology
Provides the definition of the class UWTDMA.