private void advanceApiToAtLeast(TreeSet<AreaPanelInfo> sortedApiTree,AreaPanelInfo api,int startTime,int endTime){
  sortedApiTree.remove(api);
  AreaPanel ap=api.ap();
  TimeTree rootTt=ap.getTimeTree();
  if (api.setTt(rootTt.getMinTimeTreeAfterTime(startTime),endTime))   sortedApiTree.add(api);
}

private void advanceApiToAtLeast ( TreeSet < AreaPanelInfo > sortedApiTree , AreaPanelInfo api , int startTime , int endTime ) { sortedApiTree . remove ( api ) ; AreaPanel ap = api . ap ( ) ; TimeTree rootTt = ap . getTimeTree ( ) ; if ( api . setTt ( rootTt . getMinTimeTreeAfterTime ( startTime ) , endTime ) ) sortedApiTree . add ( api ) ; }
moves api to the minimum value past start time , or deletes it completely if there isn ' t a time after start time
