12 #ifndef LINKGRAPHSCHEDULE_H 13 #define LINKGRAPHSCHEDULE_H 42 typedef std::list<LinkGraph *> GraphList;
43 typedef std::list<LinkGraphJob *> JobList;
53 static const uint SPAWN_JOIN_TICK = 21;
56 static void Run(
void *j);
62 void ShiftDates(
int interval);
71 this->schedule.push_back(lg);
virtual ~ComponentHandler()
Destroy the handler.
void Queue(LinkGraph *lg)
Queue a link graph for execution.
static Titem * Get(size_t index)
Returns Titem with given index.
void Unqueue(LinkGraph *lg)
Remove a link graph from the execution queue.
Tindex index
Index of this pool item.
virtual void Run(LinkGraphJob &job) const =0
Run the handler.
A connected component of a link graph.
static LinkGraphSchedule instance
Static instance of LinkGraphSchedule.
const SaveLoad * GetLinkGraphScheduleDesc()
Get a SaveLoad array for the link graph schedule.
GraphList schedule
Queue for new jobs.
A handler doing "something" on a link graph component.
Declaration of link graph classes used for cargo distribution.
JobList running
Currently running jobs.
Class for calculation jobs to be run on link graphs.