public static void print(ArrayList<EventLog> eventLog) { for (int i = 0; i < eventLog.size(); i++) { eventLog.get(i).print(); } // }
private static void printNotEqualEvents(final Event personEvent, final EventLog deqSimEvent) { System.out.println("POSSIBLE PROBLEM: EVENTS NOT EQUAL"); System.out.println(personEvent.toString()); deqSimEvent.print(); }
/** * the time must be the same (compared up to 4 digits after the floating * point) and the link the event type is ignored for the moment, because in * the beginning it might be different * * @param eventLog1 * @param eventLog2 * @return */ public static boolean equals(EventLog eventLog1, EventLog eventLog2) { if (Math.rint(eventLog1.getTime() * 10000) == Math.rint(eventLog2.getTime() * 10000) && eventLog1.getLinkId() == eventLog2.getLinkId()) { return true; } else { System.out.println("====PROBLEM====="); eventLog1.print(); eventLog2.print(); System.out.println("========="); } return false; }