16#ifndef SIMULATIONWORKER_H
17#define SIMULATIONWORKER_H
20#include "../NeTrainSim/simulator.h"
50 double,
double>> nodeRecords,
51 Vector<tuple<
int,
int,
int,
double,
int,
double,
52 double,
int,
double,
bool,
string,
53 string,
double> > linkRecords,
59 double,
double,
int>>,
60 Vector<std::tuple<
int,
int,
double,
65 std::string networkName,
66 double endTime,
double timeStep,
double plotFrequency,
67 std::string exportDir,
68 std::string summaryFilename,
bool exportInsta,
69 std::string instaFilename,
bool exportAllTrainsSummary);
83 const Vector<std::pair<std::string, std::string>>& summaryData,
84 const std::string& trajectoryFile);
92 Vector<std::pair<std::string,
94 double>>>> trainsStartEndPoints);
125 Vector<std::pair<std::string,
127 double>>>> trainsStartEndPoints);
135 const Vector<std::pair<std::string,
136 std::string>> &summaryData,
137 const string &trajectoryFile);
This class defined a network for trains.
Definition network.h:27
The SimulationWorker class performs simulation work in a separate thread.
Definition simulationworker.h:27
void doWork()
Slot called to start the simulation work.
Definition simulationworker.cpp:93
Network * net
Definition simulationworker.h:148
void simulaionProgressUpdated(int progressPercentage)
Signal emitted when the simulation progress is updated.
~SimulationWorker()
Destroys the SimulationWorker object.
Definition simulationworker.cpp:102
void trainSlowSpeed(std::string msg)
void simulationFinished(const Vector< std::pair< std::string, std::string > > &summaryData, const std::string &trajectoryFile)
Signal emitted when the simulation is finished.
void errorOccurred(std::string error)
Signal emitted when an error occurs during the simulation.
void trainsCoordinatesUpdated(Vector< std::pair< std::string, Vector< std::pair< double, double > > > > trainsStartEndPoints)
Signal emitted when the coordinates of trains are updated.
void onTrainsCoordinatesUpdated(Vector< std::pair< std::string, Vector< std::pair< double, double > > > > trainsStartEndPoints)
Slot called when the coordinates of trains are updated.
Definition simulationworker.cpp:80
void trainSuddenAcceleration(std::string msg)
void onSimulationFinished(const Vector< std::pair< std::string, std::string > > &summaryData, const string &trajectoryFile)
Slot called when the simulation is finished.
Definition simulationworker.cpp:86
Simulator * sim
< Pointer to the Simulator object for performing the simulation.
Definition simulationworker.h:146
void onProgressUpdated(int progressPercentage)
Slot called when the progress is updated.
Definition simulationworker.cpp:76
A vector.
Definition vector.h:24