Class TntpDemandsReaderSettings

  • All Implemented Interfaces:
    ConverterReaderSettings

    public class TntpDemandsReaderSettings
    extends Object
    implements ConverterReaderSettings
    Settings for the TNTP demands reader
    • demand file location: mandatory, no default
    • timePeriodDuration: optional, default 1 hour
    Author:
    markr
    • Field Detail

      • DEFAULT_TIME_PERIOD_DURATION

        public static Pair<Double,​TimeUnits> DEFAULT_TIME_PERIOD_DURATION
        default time period duration is set to 1 hour
      • DEFAULT_START_TIME_PERIOD_8AM

        public static Pair<Double,​TimeUnits> DEFAULT_START_TIME_PERIOD_8AM
        default start time of time period since midnight is set to 8:00 hours
    • Constructor Detail

      • TntpDemandsReaderSettings

        public TntpDemandsReaderSettings()
        Default constructor
      • TntpDemandsReaderSettings

        public TntpDemandsReaderSettings​(String demandFileLocation)
        Constructor
        Parameters:
        demandFileLocation - to use
      • TntpDemandsReaderSettings

        public TntpDemandsReaderSettings​(String demandFileLocation,
                                         double duration,
                                         TimeUnits durationUnit)
        Constructor
        Parameters:
        demandFileLocation - to use
        duration - to use
        durationUnit - to use
    • Method Detail

      • validateSettings

        protected boolean validateSettings()
        Validate settings
        Returns:
        true when valid, false otherwise
      • getDemandFileLocation

        public String getDemandFileLocation()
      • setDemandFileLocation

        public void setDemandFileLocation​(String demandFileLocation)
      • setTimePeriodDuration

        public void setTimePeriodDuration​(Number duration,
                                          TimeUnits durationUnit)
      • getTimePeriodDuration

        public double getTimePeriodDuration()
      • getTimePeriodDurationUnit

        public TimeUnits getTimePeriodDurationUnit()
      • setStartTimeSinceMidnight

        public void setStartTimeSinceMidnight​(Number startTime,
                                              TimeUnits startTimeUnit)
      • getStartTimeSinceMidNight

        public double getStartTimeSinceMidNight()
      • getStartTimeSinceMidNightUnit

        public TimeUnits getStartTimeSinceMidNightUnit()