Class DualAccelerationStep
java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.following.DualAccelerationStep
- All Implemented Interfaces:
 java.io.Serializable
public class DualAccelerationStep
extends java.lang.Object
implements java.io.Serializable
Container for two instances of an AccelerationStep. One for the GTU that is deciding its move (the leader); one for the GTU
 that will/would be the (new) follower of that GTU.
 
 Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
- Version:
 - $Revision: 1368 $, $LastChangedDate: 2015-09-02 00:20:20 +0200 (Wed, 02 Sep 2015) $, by $Author: averbraeck $,
          initial version 11 mrt. 2015 
 - Author:
 - Peter Knoppers
 - See Also:
 - Serialized Form
 
- 
Constructor Summary
Constructors Constructor Description DualAccelerationStep(AccelerationStep leaderAccelerationStep, AccelerationStep followerAccelerationStep)Create a new DualAccelerationStep. - 
Method Summary
Modifier and Type Method Description AccelerationgetFollowerAcceleration()Return the acceleration of the follower.AccelerationStepgetFollowerAccelerationStep()Retrieve the AccelerationStep for the (new) follower GTU.TimegetFollowerValidUntil()Return the time up to which the result of the follower is valid.AccelerationgetLeaderAcceleration()Return the acceleration of the leader.AccelerationStepgetLeaderAccelerationStep()Retrieve the AccelerationStep for the leader GTU.TimegetLeaderValidUntil()Return the time up to which the result of the leader is valid.java.lang.StringtoString() 
- 
Constructor Details
- 
DualAccelerationStep
public DualAccelerationStep(AccelerationStep leaderAccelerationStep, AccelerationStep followerAccelerationStep)Create a new DualAccelerationStep.- Parameters:
 leaderAccelerationStep- AccelerationStep; the acceleration and time step size for the leaderfollowerAccelerationStep- AccelerationStep; the acceleration and time step size for the (new) follower
 
 - 
 - 
Method Details
- 
getLeaderAccelerationStep
Retrieve the AccelerationStep for the leader GTU.- Returns:
 - AccelerationStep; the acceleration and time step size for the leader
 
 - 
getFollowerAccelerationStep
Retrieve the AccelerationStep for the (new) follower GTU.- Returns:
 - AccelerationStep; the acceleration and time step size for the (new) follower
 
 - 
getLeaderAcceleration
Return the acceleration of the leader.- Returns:
 - DoubleScalar<AccelerationUnit>; the acceleration of the leader
 
 - 
getFollowerAcceleration
Return the acceleration of the follower.- Returns:
 - DoubleScalar<AccelerationUnit>; the acceleration of the follower
 
 - 
getLeaderValidUntil
Return the time up to which the result of the leader is valid.- Returns:
 - DoubleScalar<TimeUnit>; the time up to which the result of the leader is valid
 
 - 
getFollowerValidUntil
Return the time up to which the result of the follower is valid.- Returns:
 - DoubleScalar<TimeUnit>; the time up to which the result of the follower is valid
 
 - 
toString
public final java.lang.String toString()- Overrides:
 toStringin classjava.lang.Object
 
 -