(svn r25867) -Fix [FS#5764]: Shift dates on link graphs when using scenario editor date tool.

This commit is contained in:
fonsinchen
2013-10-15 17:32:31 +00:00
parent a6fe1f2f63
commit 5ab204c8a1
4 changed files with 32 additions and 12 deletions

View File

@@ -125,6 +125,19 @@ void LinkGraphSchedule::SpawnAll()
inst->schedule.clear();
}
/**
* Shift all dates (join dates and edge annotations) of link graphs and link
* graph jobs by the number of days given.
* @param interval Number of days to be added or subtracted.
*/
void LinkGraphSchedule::ShiftDates(int interval)
{
LinkGraph *lg;
FOR_ALL_LINK_GRAPHS(lg) lg->ShiftDates(interval);
LinkGraphJob *lgj;
FOR_ALL_LINK_GRAPH_JOBS(lgj) lgj->ShiftJoinDate(interval);
}
/**
* Create a link graph schedule and initialize its handlers.
*/