Class SocialPressureColorer
java.lang.Object
org.opentrafficsim.road.gtu.colorer.SocialPressureColorer
- All Implemented Interfaces:
Colorer<GTU>,GTUColorer
public class SocialPressureColorer extends Object implements GTUColorer
Colorer for social pressure.
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 9 mrt. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opentrafficsim.core.animation.gtu.colorer.GTUColorer
GTUColorer.LegendEntry -
Constructor Summary
Constructors Constructor Description SocialPressureColorer() -
Method Summary
-
Constructor Details
-
SocialPressureColorer
public SocialPressureColorer()
-
-
Method Details
-
getColor
Get the color, based on the Drawable object. -
getLegend
Return a list of legend entries (useful to make a legend of the colors used to render the GTUs).- Specified by:
getLegendin interfaceGTUColorer- Returns:
- List<LegendEntry>; the list of legend entries; the caller should not (try to) modify this List
-
toString
-