public class Desire extends Object
| Constructor and Description |
|---|
Desire(double left,
double right)
Constructor which sets the supplied desire.
|
| Modifier and Type | Method and Description |
|---|---|
double |
get(org.opentrafficsim.core.network.LateralDirectionality dir)
Returns desire in the given direction.
|
double |
getLeft()
Returns lane change desire to left.
|
double |
getRight()
Returns lane change desire to right.
|
boolean |
leftIsLargerOrEqual()
Returns whether the left desire is larger than (or equal to) the right.
|
public Desire(double left,
double right)
left - Left desire.right - Right desire.public double get(org.opentrafficsim.core.network.LateralDirectionality dir)
dir - Direction for the desire to return.public double getLeft()
public double getRight()
public boolean leftIsLargerOrEqual()
Copyright © 2014–2016 Delft University of Technology. All rights reserved.