environment#
- class airtrafficsim.core.environment.Environment(file_name, start_time, end_time, weather_mode='ISA', performance_mode='BADA')#
Base class for simulation environment
Methods
Virtual method to execute user command each timestep.
Export the simulation result to a csv file.
run
([socketio])Run the simulation for all timesteps.
save
()Save all states variable of one timestemp to csv file.
send_to_client
(socketio)Send the simulation data to client.
Virtual method to determine whether the simulation should end each timestep.
step
([socketio])Conduct one simulation timestep.
- start_time#
The simulation start time [datetime object]
- end_time#
The simulation end time [s]
- atc_command()#
Virtual method to execute user command each timestep.
- should_end()#
Virtual method to determine whether the simulation should end each timestep.
- step(socketio=None)#
Conduct one simulation timestep.
- run(socketio=None)#
Run the simulation for all timesteps.
- Parameters:
- socketiosocketio object, optional
Socketio object to handle communciation when running simulation, by default None
- save()#
Save all states variable of one timestemp to csv file.
- export_to_csv()#
Export the simulation result to a csv file.
- send_to_client(socketio)#
Send the simulation data to client.
- Parameters:
- socketiosocketio object
socketio object to handle communciation when running simulation