public class TrajectoryGroup extends Object
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
TrajectoryGroup(org.djunits.value.vdouble.scalar.Duration startTime,
LaneDirection laneDirection)
Constructor without length specification.
|
TrajectoryGroup(org.djunits.value.vdouble.scalar.Duration startTime,
org.djunits.value.vdouble.scalar.Length minLength,
org.djunits.value.vdouble.scalar.Length maxLength,
LaneDirection laneDirection) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTrajectory(Trajectory trajectory)
Add trajectory.
|
boolean |
contains(Trajectory trajectory)
Whether this
TrajectoryGroup holds the given trajectory. |
boolean |
equals(Object obj) |
LaneDirection |
getLaneDirection()
Returns the lane direction.
|
org.djunits.value.vdouble.scalar.Length |
getLength() |
org.djunits.value.vdouble.scalar.Duration |
getStartTime() |
List<Trajectory> |
getTrajectories()
Returns a list of trajectories.
|
TrajectoryGroup |
getTrajectoryGroup(org.djunits.value.vdouble.scalar.Duration startDuration,
org.djunits.value.vdouble.scalar.Duration endDuration)
Returns trajectory group between two times.
|
TrajectoryGroup |
getTrajectoryGroup(org.djunits.value.vdouble.scalar.Length startLength,
org.djunits.value.vdouble.scalar.Length endLength)
Returns trajectory group between two locations.
|
TrajectoryGroup |
getTrajectoryGroup(org.djunits.value.vdouble.scalar.Length startLength,
org.djunits.value.vdouble.scalar.Length endLength,
org.djunits.value.vdouble.scalar.Duration startDuration,
org.djunits.value.vdouble.scalar.Duration endDuration)
Returns trajectory group between two locations and between two times.
|
int |
hashCode() |
String |
toString() |
public TrajectoryGroup(org.djunits.value.vdouble.scalar.Duration startTime,
LaneDirection laneDirection)
startTime - start time of trajectorieslaneDirection - lane directionpublic TrajectoryGroup(org.djunits.value.vdouble.scalar.Duration startTime,
org.djunits.value.vdouble.scalar.Length minLength,
org.djunits.value.vdouble.scalar.Length maxLength,
LaneDirection laneDirection)
startTime - start time of trajectory groupminLength - length of the sectionmaxLength - length of the sectionlaneDirection - lane directionpublic final void addTrajectory(Trajectory trajectory)
trajectory - trajectory to addpublic final org.djunits.value.vdouble.scalar.Duration getStartTime()
public final org.djunits.value.vdouble.scalar.Length getLength()
public final boolean contains(Trajectory trajectory)
TrajectoryGroup holds the given trajectory. Note that this is false if the given trajectory is
derived from a trajectory in this TrajectoryGroup.trajectory - trajectoryTrajectoryGroup holds the given trajectory.public final List<Trajectory> getTrajectories()
public final TrajectoryGroup getTrajectoryGroup(org.djunits.value.vdouble.scalar.Length startLength, org.djunits.value.vdouble.scalar.Length endLength)
startLength - start lengthendLength - end lengthpublic final TrajectoryGroup getTrajectoryGroup(org.djunits.value.vdouble.scalar.Duration startDuration, org.djunits.value.vdouble.scalar.Duration endDuration)
startDuration - start durationendDuration - end durationpublic final TrajectoryGroup getTrajectoryGroup(org.djunits.value.vdouble.scalar.Length startLength, org.djunits.value.vdouble.scalar.Length endLength, org.djunits.value.vdouble.scalar.Duration startDuration, org.djunits.value.vdouble.scalar.Duration endDuration)
startLength - start lengthendLength - end lengthstartDuration - start durationendDuration - end durationpublic final LaneDirection getLaneDirection()
Copyright © 2014–2016 Delft University of Technology. All rights reserved.