public class LaneChangeUrgeGTUColorer extends Object implements org.opentrafficsim.core.gtu.animation.GTUColorer
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Class and Description |
|---|---|
static class |
LaneChangeUrgeGTUColorer.LaneChangeDistanceAndDirection
Pack a distance available for performing a lane change and a direction in one object.
|
| Constructor and Description |
|---|
LaneChangeUrgeGTUColorer(org.djunits.value.vdouble.scalar.Length.Rel minimumLaneChangeDistance,
org.djunits.value.vdouble.scalar.Length.Rel horizon)
Construct a new LaneChangeUrgeGTUColorer.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor(org.opentrafficsim.core.gtu.GTU gtu) |
List<org.opentrafficsim.core.gtu.animation.GTUColorer.LegendEntry> |
getLegend() |
String |
toString() |
public LaneChangeUrgeGTUColorer(org.djunits.value.vdouble.scalar.Length.Rel minimumLaneChangeDistance,
org.djunits.value.vdouble.scalar.Length.Rel horizon)
minimumLaneChangeDistance - DoubleScalar.Rel<LengthUnit>; the minimum distance that a GTU requires to perform
a lane changehorizon - DoubleScalar.Rel<LengthUnit>; the distance horizon; if a GTU can stay in its current lane for at
least this distance, this GTU will be painted in the neutral color.public Color getColor(org.opentrafficsim.core.gtu.GTU gtu)
getColor in interface org.opentrafficsim.core.gtu.animation.GTUColorerpublic List<org.opentrafficsim.core.gtu.animation.GTUColorer.LegendEntry> getLegend()
getLegend in interface org.opentrafficsim.core.gtu.animation.GTUColorerCopyright © 2014–2015 Delft University of Technology. All rights reserved.