private void FlashStates() { foreach (Agent agent in agents) { AdvancedLandmarkProjectionPlaner.writeStatesToFile(agent, traces[agent]); traces[agent].ClearStates(); } }
public override void FinishPlanning(List <string> highLevelPlan) { List <string> edittedPlan = EditPlan(highLevelPlan); foreach (Agent agent in agents) { //traces[agent].plan = highLevelPlan; traces[agent].plan = edittedPlan; AdvancedLandmarkProjectionPlaner.writeStatesToFile(agent, traces[agent]); //write the leftovers AdvancedLandmarkProjectionPlaner.writeSecondHalfOfJsonToFile(agent, traces[agent]); } }