Class TotalDesireColorer

java.lang.Object
org.opentrafficsim.road.gtu.colorer.DesireColorer
org.opentrafficsim.road.gtu.colorer.TotalDesireColorer
All Implemented Interfaces:
Serializable, Colorer<GTU>, GTUColorer

public class TotalDesireColorer
extends DesireColorer
Colorer for total desire.

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 14 apr. 2017
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • getColor

      public final Color getColor​(GTU gtu)
      Get the color, based on the Drawable object.
      Parameters:
      gtu - D; the object to determine the color for
      Returns:
      the (fill, line) color of the drawable object
    • toString

      public final String toString()
      Overrides:
      toString in class Object