public interface Headway extends org.opentrafficsim.core.perception.PerceivedObject, Comparable<Headway>
 Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
| Modifier and Type | Interface and Description | 
|---|---|
static class  | 
Headway.ObjectType
the object types that can be distinguished for headway. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
default int | 
compareTo(Headway headway) | 
org.djunits.value.vdouble.scalar.Acceleration | 
getAcceleration()  | 
org.djunits.value.vdouble.scalar.Length | 
getDistance()
Retrieve the strongly typed distance to the other object. 
 | 
String | 
getId()  | 
org.djunits.value.vdouble.scalar.Length | 
getLength()  | 
Headway.ObjectType | 
getObjectType()  | 
org.djunits.value.vdouble.scalar.Length | 
getOverlap()
Return the (perceived) overlap with the other object. 
 | 
org.djunits.value.vdouble.scalar.Length | 
getOverlapFront()
Return the (perceived) front overlap to the other object. 
 | 
org.djunits.value.vdouble.scalar.Length | 
getOverlapRear()
Return the (perceived) rear overlap to the other object. 
 | 
org.djunits.value.vdouble.scalar.Speed | 
getSpeed()  | 
boolean | 
isAhead()  | 
boolean | 
isBehind()  | 
boolean | 
isParallel()  | 
String getId()
getId in interface org.opentrafficsim.base.Identifiableorg.djunits.value.vdouble.scalar.Length getLength()
org.djunits.value.vdouble.scalar.Speed getSpeed()
org.djunits.value.vdouble.scalar.Length getDistance()
Headway.ObjectType getObjectType()
org.djunits.value.vdouble.scalar.Acceleration getAcceleration()
org.djunits.value.vdouble.scalar.Length getOverlapFront()
 ----------
 |  GTU 1 |          ----->
 ----------
      ---------------
      |    GTU 2    |          ----->
      ---------------
 | a  | b |     c   |
 org.djunits.value.vdouble.scalar.Length getOverlapRear()
 ----------
 |  GTU 1 |          ----->
 ----------
      ---------------
      |    GTU 2    |          ----->
      ---------------
 | a  | b |     c   |
 org.djunits.value.vdouble.scalar.Length getOverlap()
 ----------
 |  GTU 1 |          ----->
 ----------
      ---------------
      |    GTU 2    |          ----->
      ---------------
 | a  | b |     c   |
 boolean isAhead()
boolean isBehind()
boolean isParallel()
default int compareTo(Headway headway)
compareTo in interface Comparable<Headway>Copyright © 2014–2018 Delft University of Technology. All rights reserved.