} catch (Exception e) {
}
}
// Create chart events.
ChartEvent event2 = new ChartEvent("Panic Chart 1", "Max. Pressure", maxForce);
ChartEvent event1 = new ChartEvent("Panic Chart 1", "Average Preasure", force / umg.getAgents().size());
ChartEvent event3 = new ChartEvent("Panic Chart 1", "Min. Pressure", minForce);
ChartEvent event4 = new ChartEvent("Panic Chart 2", "Rescued guys", rescuedGuys);
ChartEvent event5 = new ChartEvent("Panic Chart 2", "Dead guys", deadGuys);
event1.setyAxisLabel("Pressure");
event4.setyAxisLabel("Number of agents");
event4.setDrawSmoothSplinesInLineCharts(true);
event5.setDrawSmoothSplinesInLineCharts(true);
umg.getSimTime().broadcastEvent(event1);
umg.getSimTime().broadcastEvent(event2);
umg.getSimTime().broadcastEvent(event3);
umg.getSimTime().broadcastEvent(event4);