public void addEvent(SimEvent newEvent){
  newEvent.setSerial(serial++);
  sortedSet.add(newEvent);
}

public void addEvent ( SimEvent newEvent ) { newEvent . setSerial ( serial ++ ) ; sortedSet . add ( newEvent ) ; }
adds a new event to the queue . adding a new event to the queue preserves the temporal order of the events in the queue .
