10 #ifndef LINKGRAPHSCHEDULE_H 11 #define LINKGRAPHSCHEDULE_H 40 typedef std::list<LinkGraph *> GraphList;
41 typedef std::list<LinkGraphJob *> JobList;
51 static const uint SPAWN_JOIN_TICK = 21;
60 void ShiftDates(
int interval);
69 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.