51#include <simgear/structure/subsystem_mgr.hxx>
52#include <simgear/props/propertyObject.hxx>
53#include <simgear/misc/sg_path.hxx>
82 bool trafficSyncRequested;
84 double waitingMetarTime;
85 std::string waitingMetarStation;
92 void readTimeTableFromFile(SGPath infilename);
93 void Tokenize(
const std::string& str, std::vector<std::string>& tokens,
const std::string& delimiters =
" ");
95 simgear::PropertyObject<bool> enabled, aiEnabled, realWxEnabled, metarValid, active, aiDataUpdateNow;
97 void loadHeuristics();
104 std::unique_ptr<ScheduleParseThread> scheduleParser;
109 void parseSchedule(
const SGPath& path);
111 bool metarReady(
double dt);
118 void init()
override;
119 void update(
double time)
override;
std::map< std::string, FGScheduledFlightVec > FGScheduledFlightMap
std::vector< FGScheduledFlight * >::iterator FGScheduledFlightVecIterator
std::vector< FGAISchedule * > ScheduleVector
std::vector< FGAISchedule * >::iterator ScheduleVectorIterator
HeuristicMap::iterator HeuristicMapIterator
std::vector< Heuristic > heuristicsVector
std::map< std::string, Heuristic > HeuristicMap
std::vector< Heuristic >::iterator heuristicsVectorIterator
void update(double time) override
static const char * staticSubsystemClassId()
FGScheduledFlightVecIterator getLastFlight(const std::string &ref)
friend class ScheduleParseThread
FGScheduledFlightVecIterator getFirstFlight(const std::string &ref)
virtual ~FGTrafficManager()
Thread encapsulating parsing the traffic schedules.