package org.opentrafficsim.road.gtu.lane.perception;
import org.opentrafficsim.road.gtu.lane.perception.headway.Headway;
/**
* Iterable set of elements, sorted close to far.
*
* Copyright (c) 2013-2021 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
* BSD-style license. See OpenTrafficSim License.
*
* @version $Revision$, $LastChangedDate$, by $Author$, initial version 16 feb. 2018
* @author Alexander Verbraeck
* @author Peter Knoppers
* @author Wouter Schakel
* @param headway type
*/
public interface PerceptionIterable extends Iterable
{
/**
* Returns the first element.
* @return H; first element
*/
H first();
/**
* Returns whether this iterable is empty.
* @return whether this iterable is empty
*/
boolean isEmpty();
}