org.opentrafficsim.road.gtu.lane.perception.PerceptionIterable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ots-road Show documentation
Show all versions of ots-road Show documentation
OpenTrafficSim road classes
The newest version!
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-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
* BSD-style license. See OpenTrafficSim License.
*
* @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();
}