public class HeadwayObject extends AbstractHeadwayCopy
 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.
 
Headway.ObjectType| Constructor and Description | 
|---|
HeadwayObject(String id,
             Length distance)
Construct a new Headway information object, for a non-moving object ahead of us or behind us. 
 | 
HeadwayObject(String id,
             Length distance,
             Length length)
Construct a new Headway information object, for a non-moving object ahead of us or behind us. 
 | 
HeadwayObject(String id,
             Length overlapFront,
             Length overlap,
             Length overlapRear)
Construct a new Headway information object, for a non-moving object parallel with us. 
 | 
HeadwayObject(String id,
             Length overlapFront,
             Length overlap,
             Length overlapRear,
             Length length)
Construct a new Headway information object, for a non-moving object parallel with us. 
 | 
HeadwayObject(String id,
             Length overlapFront,
             Length overlap,
             Length overlapRear,
             Length length,
             Speed speed,
             Acceleration acceleration)
Construct a new Headway information object, for a moving object parallel with us. 
 | 
HeadwayObject(String id,
             Length overlapFront,
             Length overlap,
             Length overlapRear,
             Speed speed,
             Acceleration acceleration)
Construct a new Headway information object, for a moving object parallel with us. 
 | 
HeadwayObject(String id,
             Length distance,
             Length length,
             Speed speed,
             Acceleration acceleration)
Construct a new Headway information object, for a moving object ahead of us or behind us. 
 | 
HeadwayObject(String id,
             Length distance,
             Speed speed,
             Acceleration acceleration)
Construct a new Headway information object, for a moving object ahead of us or behind us. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
toString() | 
equals, getAcceleration, getId, getLength, getObjectType, getSpeed, hashCodegetDistance, getOverlap, getOverlapFront, getOverlapRear, isAhead, isBehind, isParallelpublic HeadwayObject(String id, Length distance, Speed speed, Acceleration acceleration) throws GTUException
id - String; the id of the object for comparison purposes, can not be null.distance - the distance to the other object; if this constructor is used, distance cannot be null.speed - the (perceived) speed of the other object; can be null if unknown.acceleration - the (perceived) acceleration of the other object; can be null if unknown.GTUException - when id is null, objectType is null, or parameters are inconsistentpublic HeadwayObject(String id, Length distance) throws GTUException
id - String; the id of the object for comparison purposes, can not be null.distance - the distance to the other object; if this constructor is used, distance cannot be null.GTUException - when id is null, or parameters are inconsistentpublic HeadwayObject(String id, Length overlapFront, Length overlap, Length overlapRear, Speed speed, Acceleration acceleration) throws GTUException
id - String; the id of the object for comparison purposes, can not be null.overlapFront - the front-front distance to the other object; if this constructor is used, this value cannot be null.overlap - the 'center' overlap with the other object; if this constructor is used, this value cannot be null.overlapRear - the rear-rear distance to the other object; if this constructor is used, this value cannot be null.speed - the (perceived) speed of the other object; can be null if unknown.acceleration - the (perceived) acceleration of the other object; can be null if unknown.GTUException - when id is null, or parameters are inconsistentpublic HeadwayObject(String id, Length overlapFront, Length overlap, Length overlapRear) throws GTUException
id - String; the id of the object for comparison purposes, can not be null.overlapFront - the front-front distance to the other object; if this constructor is used, this value cannot be null.overlap - the 'center' overlap with the other object; if this constructor is used, this value cannot be null.overlapRear - the rear-rear distance to the other object; if this constructor is used, this value cannot be null.GTUException - when id is null, or parameters are inconsistentpublic HeadwayObject(String id, Length distance, Length length, Speed speed, Acceleration acceleration) throws GTUException
id - String; the id of the object for comparison purposes, can not be null.distance - the distance to the other object; if this constructor is used, distance cannot be null.length - Length; the length of the other object, can be null of unknown.speed - the (perceived) speed of the other object; can be null if unknown.acceleration - the (perceived) acceleration of the other object; can be null if unknown.GTUException - when id is null, objectType is null, or parameters are inconsistentpublic HeadwayObject(String id, Length distance, Length length) throws GTUException
id - String; the id of the object for comparison purposes, can not be null.distance - the distance to the other object; if this constructor is used, distance cannot be null.length - Length; the length of the other object, can be null of unknown.GTUException - when id is null, or parameters are inconsistentpublic HeadwayObject(String id, Length overlapFront, Length overlap, Length overlapRear, Length length, Speed speed, Acceleration acceleration) throws GTUException
id - String; the id of the object for comparison purposes, can not be null.overlapFront - the front-front distance to the other object; if this constructor is used, this value cannot be null.overlap - the 'center' overlap with the other object; if this constructor is used, this value cannot be null.overlapRear - the rear-rear distance to the other object; if this constructor is used, this value cannot be null.length - Length; the length of the other object, can be null of unknown.speed - the (perceived) speed of the other object; can be null if unknown.acceleration - the (perceived) acceleration of the other object; can be null if unknown.GTUException - when id is null, or parameters are inconsistentpublic HeadwayObject(String id, Length overlapFront, Length overlap, Length overlapRear, Length length) throws GTUException
id - String; the id of the object for comparison purposes, can not be null.overlapFront - the front-front distance to the other object; if this constructor is used, this value cannot be null.overlap - the 'center' overlap with the other object; if this constructor is used, this value cannot be null.overlapRear - the rear-rear distance to the other object; if this constructor is used, this value cannot be null.length - Length; the length of the other object, can be null of unknown.GTUException - when id is null, or parameters are inconsistentpublic final String toString()
toString in class AbstractHeadwayCopyright © 2014–2019 Delft University of Technology. All rights reserved.