Class EqualDistanceTimestampWriter
java.lang.Object
tools.descartes.dlim.exporter.utils.TimeStampWriter
tools.descartes.dlim.exporter.utils.EqualDistanceTimestampWriter
Creates a time-stamp file from an arrival rate list. Timestamps are sampled
with equal distance.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new equal distance timestamp writer.EqualDistanceTimestampWriter
(String endOfLineCharacter) Instantiates a new equal distance timestamp writer. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
writeTimestampsForArrivalRate
(PrintWriter writer, double step, double arrRate, double tmpStep, double tmpTime) Write the arrival rate using the provided writer in the specific chosen format.Methods inherited from class tools.descartes.dlim.exporter.utils.TimeStampWriter
formatDoubleForDecimalPlaces, generateTimeStampsFromArrivalRates, getDecimalplaces, getEndOfLineCharacter, getStretch
-
Constructor Details
-
EqualDistanceTimestampWriter
public EqualDistanceTimestampWriter()Instantiates a new equal distance timestamp writer. -
EqualDistanceTimestampWriter
Instantiates a new equal distance timestamp writer.- Parameters:
endOfLineCharacter
- The character before the end of a line in the output file. Note: the "\n" is always printed after this character. It does not have to be included here.
-
-
Method Details
-
writeTimestampsForArrivalRate
protected void writeTimestampsForArrivalRate(PrintWriter writer, double step, double arrRate, double tmpStep, double tmpTime) Description copied from class:TimeStampWriter
Write the arrival rate using the provided writer in the specific chosen format.- Specified by:
writeTimestampsForArrivalRate
in classTimeStampWriter
- Parameters:
writer
- PrintWriter, is already initialized and writing.step
- step between two time stampsarrRate
- current arrival ratetmpStep
- the temporary steptmpTime
- the temporary time- See Also:
-