replay#
- class airtrafficsim.server.replay.Replay#
Methods
get_graph_data
(mode, replayCategory, ...)Get the data for the selected parameters to plot a graph.
get_graph_header
(mode, replayCategory, ...)Get the list of parameters name of a file suitable for plotting graph.
get_replay_czml
(replayCategory, replayFile)Generate CZML file for visualization given replay file name.
Return a list of historic/simulation data directories in data/replay
- static get_replay_dir()#
Return a list of historic/simulation data directories in data/replay
- Returns:
- {}
JSON file of historic file list and simulation file list in data/replay directory
- static get_replay_czml(replayCategory, replayFile)#
Generate CZML file for visualization given replay file name.
- Parameters:
- replayCategorystring
The category to replay (historic / simulation)
- replayFilestring
Name of the replay file directory
- Returns:
- {}
JSON CZML file
- static get_graph_header(mode, replayCategory, replayFile)#
Get the list of parameters name of a file suitable for plotting graph.
- Parameters:
- modestring
AirTrafficSim mode (replay / simulation)
- replayCategorystring
The category to replay (historic / simulation)
- replayFilestring
Name of the replay file directory
- Returns:
- string[]
List of graph headers
- static get_graph_data(mode, replayCategory, replayFile, simulationFile, graph)#
Get the data for the selected parameters to plot a graph.
- Parameters:
- modestring
AirTrafficSim mode (replay / simulation)
- replayCategorystring
The category to replay (historic / simulation)
- replayFilestring
Name of the replay file directory
- Returns:
- {}
JSON file for graph data for Plotly.js