public abstract class AbstractHeadwayCopy extends AbstractHeadway
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 |
---|
AbstractHeadwayCopy(Headway.ObjectType objectType,
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.
|
AbstractHeadwayCopy(Headway.ObjectType objectType,
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.
|
AbstractHeadwayCopy(Headway.ObjectType objectType,
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.
|
AbstractHeadwayCopy(Headway.ObjectType objectType,
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.
|
AbstractHeadwayCopy(Headway.ObjectType objectType,
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.
|
AbstractHeadwayCopy(Headway.ObjectType objectType,
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.
|
AbstractHeadwayCopy(Headway.ObjectType objectType,
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.
|
AbstractHeadwayCopy(Headway.ObjectType objectType,
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 |
---|---|
boolean |
equals(Object obj) |
org.djunits.value.vdouble.scalar.Acceleration |
getAcceleration() |
String |
getId() |
org.djunits.value.vdouble.scalar.Length |
getLength() |
Headway.ObjectType |
getObjectType() |
org.djunits.value.vdouble.scalar.Speed |
getSpeed() |
int |
hashCode() |
getDistance, getOverlap, getOverlapFront, getOverlapRear, isAhead, isBehind, isParallel, toString
public AbstractHeadwayCopy(Headway.ObjectType objectType, 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
objectType
- the perceived object type, can be null if object type unknown.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, or parameters are inconsistentpublic AbstractHeadwayCopy(Headway.ObjectType objectType, String id, org.djunits.value.vdouble.scalar.Length distance) throws org.opentrafficsim.core.gtu.GTUException
objectType
- the perceived object type, can be null if object type unknown.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 AbstractHeadwayCopy(Headway.ObjectType objectType, 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
objectType
- the perceived object type, can be null if object type unknown.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 AbstractHeadwayCopy(Headway.ObjectType objectType, 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
objectType
- the perceived object type, can be null if object type unknown.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 AbstractHeadwayCopy(Headway.ObjectType objectType, 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
objectType
- the perceived object type, can be null if object type unknown.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; if this constructor is used, length 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 AbstractHeadwayCopy(Headway.ObjectType objectType, String id, org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Length length) throws org.opentrafficsim.core.gtu.GTUException
objectType
- the perceived object type, can be null if object type unknown.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; if this constructor is used, length cannot be null.org.opentrafficsim.core.gtu.GTUException
- when id is null, or parameters are inconsistentpublic AbstractHeadwayCopy(Headway.ObjectType objectType, 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
objectType
- the perceived object type, can be null if object type unknown.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; if this constructor is used, length 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 AbstractHeadwayCopy(Headway.ObjectType objectType, 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
objectType
- the perceived object type, can be null if object type unknown.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; if this constructor is used, length cannot be null.org.opentrafficsim.core.gtu.GTUException
- when id is null, or parameters are inconsistentpublic final String getId()
public final org.djunits.value.vdouble.scalar.Length getLength()
public final org.djunits.value.vdouble.scalar.Speed getSpeed()
public final Headway.ObjectType getObjectType()
public final org.djunits.value.vdouble.scalar.Acceleration getAcceleration()
public int hashCode()
hashCode
in class AbstractHeadway
public boolean equals(Object obj)
equals
in class AbstractHeadway
Copyright © 2014–2017 Delft University of Technology. All rights reserved.