public abstract class AbstractHeadwayLaneBasedObject extends AbstractHeadwayCopy implements HeadwayLaneBasedObject
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 |
|---|
AbstractHeadwayLaneBasedObject(Headway.ObjectType objectType,
String id,
Length distance,
Lane lane)
Construct a new Headway information object, for a non-moving object ahead of us or behind us.
|
AbstractHeadwayLaneBasedObject(Headway.ObjectType objectType,
String id,
Length distance,
Length length,
Lane lane)
Construct a new Headway information object, for a non-moving object ahead of us or behind us.
|
AbstractHeadwayLaneBasedObject(Headway.ObjectType objectType,
String id,
Length overlapFront,
Length overlap,
Length overlapRear,
Lane lane)
Construct a new Headway information object, for a non-moving object parallel with us.
|
AbstractHeadwayLaneBasedObject(Headway.ObjectType objectType,
String id,
Length overlapFront,
Length overlap,
Length overlapRear,
Length length,
Lane lane)
Construct a new Headway information object, for a non-moving object parallel with us.
|
| Modifier and Type | Method and Description |
|---|---|
Lane |
getLane()
Lane at which the object is located.
|
equals, getAcceleration, getId, getLength, getObjectType, getSpeed, hashCodegetDistance, getOverlap, getOverlapFront, getOverlapRear, isAhead, isBehind, isParallel, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, getAcceleration, getDistance, getId, getLength, getObjectType, getOverlap, getOverlapFront, getOverlapRear, getSpeed, isAhead, isBehind, isParallelpublic AbstractHeadwayLaneBasedObject(Headway.ObjectType objectType, String id, Length overlapFront, Length overlap, Length overlapRear, Length length, Lane lane) throws GTUException
objectType - ObjectType; the perceived object type, can be null if object type unknown.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 - the length of the other object; if this constructor is used, length cannot be null.lane - Lane; the lane.GTUException - when id is null, or parameters are inconsistentpublic AbstractHeadwayLaneBasedObject(Headway.ObjectType objectType, String id, Length overlapFront, Length overlap, Length overlapRear, Lane lane) throws GTUException
objectType - ObjectType; the perceived object type, can be null if object type unknown.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.lane - Lane; the lane.GTUException - when id is null, or parameters are inconsistentpublic AbstractHeadwayLaneBasedObject(Headway.ObjectType objectType, String id, Length distance, Length length, Lane lane) throws GTUException
objectType - ObjectType; the perceived object type, can be null if object type unknown.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 - the length of the other object; if this constructor is used, length cannot be null.lane - Lane; the lane.GTUException - when id is null, or parameters are inconsistentpublic AbstractHeadwayLaneBasedObject(Headway.ObjectType objectType, String id, Length distance, Lane lane) throws GTUException
objectType - ObjectType; the perceived object type, can be null if object type unknown.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.lane - Lane; the lane.GTUException - when id is null, or parameters are inconsistentpublic Lane getLane()
getLane in interface HeadwayLaneBasedObjectCopyright © 2014–2019 Delft University of Technology. All rights reserved.