View Javadoc
1   package org.opentrafficsim.road.gtu.lane.perception;
2   
3   import java.util.TreeSet;
4   import java.util.function.Supplier;
5   
6   import org.opentrafficsim.road.gtu.lane.perception.headway.Headway;
7   
8   /**
9    * Simple class implementing a SortedSet. This is mainly for backwards compatibility. Methods that determine the elements 1-by-1
10   * are much preferred for efficiency.
11   * <p>
12   * Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
13   * BSD-style license. See <a href="http://opentrafficsim.org/node/13">OpenTrafficSim License</a>.
14   * <p>
15   * @version $Revision$, $LastChangedDate$, by $Author$, initial version 19 feb. 2018 <br>
16   * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
17   * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
18   * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
19   * @param <H> headway type
20   * @param <U> underlying object type
21   */
22  @Deprecated
23  public class SortedSetPerceptionIterable<H extends Headway, U> extends TreeSet<H> implements PerceptionCollectable<H, U>
24  {
25  
26      /** */
27      private static final long serialVersionUID = 20180219L;
28  
29      /** {@inheritDoc} */
30      @Override
31      public <C, I> C collect(final Supplier<I> identity, final PerceptionAccumulator<? super U, I> accumulator,
32              final PerceptionFinalizer<C, I> finalizer)
33      {
34          throw new UnsupportedOperationException();
35      }
36  
37  }