public class HeadwayObject extends AbstractHeadwayCopy
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 |
---|
HeadwayObject(String id,
org.djunits.value.vdouble.scalar.Length distance)
Construct a new Headway information object, for a non-moving object ahead of us or behind us.
|
HeadwayObject(String id,
org.djunits.value.vdouble.scalar.Length distance,
org.djunits.value.vdouble.scalar.Length length)
Construct a new Headway information object, for a non-moving object ahead of us or behind us.
|
HeadwayObject(String id,
org.djunits.value.vdouble.scalar.Length overlapFront,
org.djunits.value.vdouble.scalar.Length overlap,
org.djunits.value.vdouble.scalar.Length overlapRear)
Construct a new Headway information object, for a non-moving object parallel with us.
|
HeadwayObject(String id,
org.djunits.value.vdouble.scalar.Length overlapFront,
org.djunits.value.vdouble.scalar.Length overlap,
org.djunits.value.vdouble.scalar.Length overlapRear,
org.djunits.value.vdouble.scalar.Length length)
Construct a new Headway information object, for a non-moving object parallel with us.
|
HeadwayObject(String id,
org.djunits.value.vdouble.scalar.Length overlapFront,
org.djunits.value.vdouble.scalar.Length overlap,
org.djunits.value.vdouble.scalar.Length overlapRear,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Acceleration acceleration)
Construct a new Headway information object, for a moving object parallel with us.
|
HeadwayObject(String id,
org.djunits.value.vdouble.scalar.Length overlapFront,
org.djunits.value.vdouble.scalar.Length overlap,
org.djunits.value.vdouble.scalar.Length overlapRear,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Acceleration acceleration)
Construct a new Headway information object, for a moving object parallel with us.
|
HeadwayObject(String id,
org.djunits.value.vdouble.scalar.Length distance,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Acceleration acceleration)
Construct a new Headway information object, for a moving object ahead of us or behind us.
|
HeadwayObject(String id,
org.djunits.value.vdouble.scalar.Length distance,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.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, hashCode
getDistance, getOverlap, getOverlapFront, getOverlapRear, isAhead, isBehind, isParallel
public HeadwayObject(String id, org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration) throws org.opentrafficsim.core.gtu.GTUException
id
- 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.org.opentrafficsim.core.gtu.GTUException
- when id is null, objectType is null, or parameters are inconsistentpublic HeadwayObject(String id, org.djunits.value.vdouble.scalar.Length distance) throws org.opentrafficsim.core.gtu.GTUException
id
- 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.org.opentrafficsim.core.gtu.GTUException
- when id is null, or parameters are inconsistentpublic HeadwayObject(String id, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration) throws org.opentrafficsim.core.gtu.GTUException
id
- 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.org.opentrafficsim.core.gtu.GTUException
- when id is null, or parameters are inconsistentpublic HeadwayObject(String id, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear) throws org.opentrafficsim.core.gtu.GTUException
id
- 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.org.opentrafficsim.core.gtu.GTUException
- when id is null, or parameters are inconsistentpublic HeadwayObject(String id, org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Length length, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration) throws org.opentrafficsim.core.gtu.GTUException
id
- 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, 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.org.opentrafficsim.core.gtu.GTUException
- when id is null, objectType is null, or parameters are inconsistentpublic HeadwayObject(String id, org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Length length) throws org.opentrafficsim.core.gtu.GTUException
id
- 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, can be null of unknown.org.opentrafficsim.core.gtu.GTUException
- when id is null, or parameters are inconsistentpublic HeadwayObject(String id, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear, org.djunits.value.vdouble.scalar.Length length, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration) throws org.opentrafficsim.core.gtu.GTUException
id
- 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, 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.org.opentrafficsim.core.gtu.GTUException
- when id is null, or parameters are inconsistentpublic HeadwayObject(String id, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear, org.djunits.value.vdouble.scalar.Length length) throws org.opentrafficsim.core.gtu.GTUException
id
- 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, can be null of unknown.org.opentrafficsim.core.gtu.GTUException
- when id is null, or parameters are inconsistentpublic final String toString()
toString
in class AbstractHeadway
Copyright © 2014–2017 Delft University of Technology. All rights reserved.