public class HeadwayDistance extends Object implements 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.
Headway.ObjectType
Constructor and Description |
---|
HeadwayDistance(double distance)
Construct a new Headway information object with just a distance, without any further information about the object; it
assumes a speed of 0 at the headway, so it also good to store information about a lane drop.
|
HeadwayDistance(org.djunits.value.vdouble.scalar.Length distance)
Construct a new Headway information object with just a distance, without any further information about the object; it
assumes a speed of 0 at the headway, so it also good to store information about a lane drop.
|
Modifier and Type | Method and Description |
---|---|
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 |
toString() |
public HeadwayDistance(double distance)
distance
- the distance that needs to be stored.public HeadwayDistance(org.djunits.value.vdouble.scalar.Length distance)
distance
- the distance that needs to be stored.public final String getId()
public final org.djunits.value.vdouble.scalar.Length getLength()
public final org.djunits.value.vdouble.scalar.Speed getSpeed()
public final org.djunits.value.vdouble.scalar.Length getDistance()
getDistance
in interface Headway
public final Headway.ObjectType getObjectType()
getObjectType
in interface Headway
public final org.djunits.value.vdouble.scalar.Acceleration getAcceleration()
getAcceleration
in interface Headway
public final org.djunits.value.vdouble.scalar.Length getOverlapFront()
---------- | GTU 1 | -----> ---------- --------------- | GTU 2 | -----> --------------- | a | b | c |
getOverlapFront
in interface Headway
public final org.djunits.value.vdouble.scalar.Length getOverlapRear()
---------- | GTU 1 | -----> ---------- --------------- | GTU 2 | -----> --------------- | a | b | c |
getOverlapRear
in interface Headway
public final org.djunits.value.vdouble.scalar.Length getOverlap()
---------- | GTU 1 | -----> ---------- --------------- | GTU 2 | -----> --------------- | a | b | c |
getOverlap
in interface Headway
public final boolean isAhead()
public final boolean isBehind()
public final boolean isParallel()
isParallel
in interface Headway
Copyright © 2014–2017 Delft University of Technology. All rights reserved.