Create a wireless network simulator, and define the duration of the simulation.
Create a custom local function, actionCallback, that defines the action to be performed by the simulator.
Schedule a pre-simulation action.
Schedule a post-simulation action.
Schedule a regular action for t = 0 seconds.
This action executes after the pre-simulation action, even though the timestamps for both actions are t = 0 seconds.
Schedule a regular action for t = simulationDuration.
This action executes before the post-simulation action, even though the timestamps for both actions are t = simulationDuration.
Create 5G nodes.
Connect the user equipment (UE) and base station (gNB) nodes.
Add the nodes to the wireless network simulator.
Run the simulation.
t=0.000 seconds: ActionType=PreSimulationAction executed
t=0.000 seconds: ActionType=FirstSimulationAction executed
t=1.000 seconds: ActionType=LastSimulationAction executed
t=1.000 seconds: ActionType=PostSimulationAction executed