Class DefaultArrivalRateReader

java.lang.Object
tools.descartes.dlim.reader.DefaultArrivalRateReader
All Implemented Interfaces:
IDlimArrivalRateReader

public class DefaultArrivalRateReader extends Object implements IDlimArrivalRateReader
Default arrival rate reader. Reads the default arrival rate format as produced by the dlim.exporter plugin.
  • Constructor Details

    • DefaultArrivalRateReader

      public DefaultArrivalRateReader()
  • Method Details

    • readFileToList

      public List<ArrivalRateTuple> readFileToList(String filePath, double offset) throws IOException
      Reads an arrival rate trace into a arrival rate tuple list. Starts reading at the given time offset.
      Specified by:
      readFileToList in interface IDlimArrivalRateReader
      Parameters:
      filePath - The file's path.
      offset - The time offset at which to start reading
      Returns:
      ordered list of arrival rate tuples
      Throws:
      IOException - Exception on missing or unreadable files