should only be called from simulation thread ! concode_field_sep int eventCount concode_elem_sep TimeEvent first concode_field_sep void addEvent concode_elem_sep void addEvent concode_elem_sep void removeAll concode_elem_sep boolean removeFromQueue concode_elem_sep TimeEvent peekFirst concode_elem_sep String toString
TimeEvent function ( ) { TimeEvent loc0 = first ; if ( loc0 == null ) { return null ; } first = loc0 . nextEvent ; loc0 . nextEvent = null ; loc0 . queue = null ; eventCount -- ; if ( ! loc0 . isScheduled ) { return popFirst ( ) ; } loc0 . isScheduled = false ; return loc0 ; }