}
}
public ScheduleInterval contains(double t,double deltaT1,double deltaT2,CoordinatesConverter coord){
if (scheduleCaching){
ScheduleInterval interval;
for (Iterator i=intervals.iterator();i.hasNext();){
interval=(ScheduleInterval)i.next();
if (coord!=null) interval=coord.adaptSmallBarTimeInterval(interval, this, null);
if (t>=interval.getStart()-deltaT1&&t<=interval.getEnd()+deltaT2) return interval;
}
return null;
}else{
if (containsConsumer==null) containsConsumer=new ContainsIntervalConsumer();
containsConsumer.init(t,deltaT1,deltaT2,coord,this);