public class LaneChangeUrgeGTUColorer extends Object implements GTUColorer
Copyright (c) 2013-2014 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.
|
GTUColorer.LegendEntry| Constructor and Description |
|---|
LaneChangeUrgeGTUColorer(DoubleScalar.Rel<LengthUnit> minimumLaneChangeDistance,
DoubleScalar.Rel<LengthUnit> horizon)
Construct a new LaneChangeUrgeGTUColorer.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor(GTU<?> gtu)
Return the fill color for a GTU.
|
List<GTUColorer.LegendEntry> |
getLegend()
Return a list of legend entries (useful to make a legend of the colors used to render the GTUs).
|
String |
toString() |
public LaneChangeUrgeGTUColorer(DoubleScalar.Rel<LengthUnit> minimumLaneChangeDistance, DoubleScalar.Rel<LengthUnit> 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(GTU<?> gtu) throws RemoteException
getColor in interface GTUColorergtu - GTU; the GTURemoteException - on communications failurepublic List<GTUColorer.LegendEntry> getLegend()
getLegend in interface GTUColorerCopyright © 2014–2015 Delft University of Technology. All rights reserved.