DurationUnitType.java

  1. package org.opentrafficsim.xml.bindings.types;

  2. import org.djunits.unit.DurationUnit;

  3. /**
  4.  * Expression type with DurationUnit value.
  5.  * <p>
  6.  * Copyright (c) 2023-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
  7.  * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
  8.  * </p>
  9.  * @author <a href="https://github.com/wjschakel">Wouter Schakel</a>
  10.  */
  11. public class DurationUnitType extends ExpressionType<DurationUnit>
  12. {

  13.     /**
  14.      * Constructor with value.
  15.      * @param value DurationUnit; value, may be {@code null}.
  16.      */
  17.     public DurationUnitType(final DurationUnit value)
  18.     {
  19.         super(value);
  20.     }

  21.     /**
  22.      * Constructor with expression.
  23.      * @param expression String; expression.
  24.      */
  25.     public DurationUnitType(final String expression)
  26.     {
  27.         super(expression);
  28.     }

  29. }