protected void compareToDEQSimEvents(final String deqsimEventsFile){
  LinkedList<Event> copyEventList=new LinkedList<Event>();
  for (int i=0; i < allEvents.size(); i++) {
    if (!(allEvents.get(i) instanceof ActivityStartEvent || allEvents.get(i) instanceof ActivityEndEvent)) {
      copyEventList.add(allEvents.get(i));
    }
  }
  ArrayList<EventLog> deqSimLog=CppEventFileParser.parseFile(deqsimEventsFile);
  for (int i=0; i < copyEventList.size(); i++) {
    assertTrue("events not equal.",CppEventFileParser.equals(copyEventList.get(i),deqSimLog.get(i)));
  }
}

protected void compareToDEQSimEvents ( final String deqsimEventsFile ) { LinkedList < Event > copyEventList = new LinkedList < Event > ( ) ; for ( int i = 0 ; i < allEvents . size ( ) ; i ++ ) { if ( ! ( allEvents . get ( i ) instanceof ActivityStartEvent || allEvents . get ( i ) instanceof ActivityEndEvent ) ) { copyEventList . add ( allEvents . get ( i ) ) ; } } ArrayList < EventLog > deqSimLog = CppEventFileParser . parseFile ( deqsimEventsFile ) ; for ( int i = 0 ; i < copyEventList . size ( ) ; i ++ ) { assertTrue ( "events not equal." , CppEventFileParser . equals ( copyEventList . get ( i ) , deqSimLog . get ( i ) ) ) ; } }
compare events to deq event file . the order of events must also be the same . ( this test will only succeed for simple tests with one car often ! ! ! ) = > reason : at junctions the order of cars can change + stuck vehicles are dealt with in different ways
