set_timeblocks.add( avebox );
}
private void patchSetOfTimeBlocks()
{
TimeBoundingBox first_timeblock, last_timeblock, new_timeblock;
new_timeblock = new TimeBoundingBox( TimeBoundingBox.ALL_TIMES );
first_timeblock = null;
if ( ! set_timeblocks.isEmpty() )
first_timeblock = (TimeBoundingBox) set_timeblocks.first();
if ( first_timeblock != null
&& first_timeblock.contains( super.getEarliestTime() ) )
new_timeblock.setLatestTime( first_timeblock.getEarliestTime() );
else
new_timeblock.setLatestTime( super.getEarliestTime() );
set_timeblocks.add( new_timeblock );
new_timeblock = new TimeBoundingBox( TimeBoundingBox.ALL_TIMES );
last_timeblock = null;
if ( ! set_timeblocks.isEmpty() )
last_timeblock = (TimeBoundingBox) set_timeblocks.last();
if ( last_timeblock != null
&& last_timeblock.contains( super.getLatestTime() ) )