TT_U¶
-
class
NetworkSim.simulation.process.transmitter.
TT_U
(env, ram, transmitter_id, simulator, until, model=None)[source]¶ Tunable transmitter simulator in bi-directional system, transmitting downstream packets.
- Parameters
env (simpy Environment) – The simulation environment.
ram (RAM) – The RAM at which the transmitter access its information.
transmitter_id (int) – The transmitter ID.
model (Model, optional) – The network model used for the simulation. Default is
Model()
.
- Variables
transmitted_data_packet_df (pandas DataFrame) –
A DataFrame keeping the information of the transmitted data packets, containing the columns:
Timestamp
Raw Packet
Destination ID
transmitted_control_packet_df (pandas DataFrame) –
A DataFrame keeping the information of the transmitted control packets, containing the columns:
Timestamp
Raw Packet
Destination ID
-
transmit_on_data_ring
()[source]¶ Tunable Transmitter process to add a new data packet onto the target ring in the upstream direction.
In this process:
The first data packet in the RAM queue is popped;
The transmitter is tuned to the target ring
Wait for correct timing to transmit
The data packet is added onto its respective ring.