question: public ExternalEvent nextEvent ( ) { if ( queue . size ( ) == 0 ) { return new ExternalEvent ( Double . MAX_VALUE ) ; } ExternalEvent ee = queue . get ( nextEventIndex ) ; nextEventIndex ++ ; if ( nextEventIndex >= queue . size ( ) ) { queue = readEvents ( nrofPreload ) ; nextEventIndex = 0 ; } return ee ; }
target:  Returns the next event in the queue or ExternalEvent with time of double.MAX_VALUE if there are no events left