Package tools.descartes.dlim.reader
Class DefaultArrivalRateReader
java.lang.Object
tools.descartes.dlim.reader.DefaultArrivalRateReader
- All Implemented Interfaces:
IDlimArrivalRateReader
Default arrival rate reader. Reads the default arrival rate format as
produced by the dlim.exporter plugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadFileToList
(String filePath, double offset) Reads an arrival rate trace into a arrival rate tuple list.
-
Constructor Details
-
DefaultArrivalRateReader
public DefaultArrivalRateReader()
-
-
Method Details
-
readFileToList
Reads an arrival rate trace into a arrival rate tuple list. Starts reading at the given time offset.- Specified by:
readFileToList
in interfaceIDlimArrivalRateReader
- 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
-