public interface Headway extends PerceivedObject, Comparable<Headway>
Copyright (c) 2013-2019 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) |
Acceleration |
getAcceleration() |
Length |
getDistance()
Retrieve the strongly typed distance to the other object.
|
String |
getId() |
Length |
getLength() |
Headway.ObjectType |
getObjectType() |
Length |
getOverlap()
Return the (perceived) overlap with the other object.
|
Length |
getOverlapFront()
Return the (perceived) front overlap to the other object.
|
Length |
getOverlapRear()
Return the (perceived) rear overlap to the other object.
|
Speed |
getSpeed() |
boolean |
isAhead() |
boolean |
isBehind() |
boolean |
isParallel() |
String getId()
getId
in interface Identifiable
Length getLength()
Speed getSpeed()
Length getDistance()
Headway.ObjectType getObjectType()
Acceleration getAcceleration()
Length getOverlapFront()
---------- | GTU 1 | -----> ---------- --------------- | GTU 2 | -----> --------------- | a | b | c |
Length getOverlapRear()
---------- | GTU 1 | -----> ---------- --------------- | GTU 2 | -----> --------------- | a | b | c |
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–2019 Delft University of Technology. All rights reserved.