Class DemandTag

  • All Implemented Interfaces:
    java.io.Serializable

    public class DemandTag
    extends java.lang.Object
    implements java.io.Serializable
    Demand.

    Copyright (c) 2013-2020 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 25 mei 2018
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DemandTag.DemandType
      Demand type.
    • Constructor Summary

      Constructors 
      Constructor Description
      DemandTag()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double parseFactor​(java.lang.String value)
      Parses a String of percentage or value to a double.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DemandTag

        public DemandTag()
    • Method Detail

      • parseFactor

        public static double parseFactor​(java.lang.String value)
                                  throws XmlParserException
        Parses a String of percentage or value to a double.
        Parameters:
        value - String; value
        Returns:
        double
        Throws:
        XmlParserException - if factor is not in range from 0 to 1