Class ScaledTimeConverter
- java.lang.Object
-
- deltix.qsrv.hf.tickdb.ui.tbshell.virtualplayer.time.ScaledTimeConverter
-
- All Implemented Interfaces:
MessageTimeConverter
public class ScaledTimeConverter extends java.lang.Object implements MessageTimeConverter
Converts message time in a liner way. Rule: time that was N seconds away from "srcInitialTime" will become N/S seconds away from "dstInitialTime", where S is "virtual speed". For example: 1) Time at srcInitialTime is always converted to dstInitialTime 2) If speed is 5, then message with timestamp srcInitialTime + 10 will get timestamp dstInitialTime + 2.
-
-
Constructor Summary
Constructors Constructor Description ScaledTimeConverter(long srcInitialTime, long dstInitialTime, double speed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
convertTime(deltix.qsrv.hf.pub.InstrumentMessage message)
-
-
-
Method Detail
-
convertTime
public void convertTime(deltix.qsrv.hf.pub.InstrumentMessage message)
- Specified by:
convertTime
in interfaceMessageTimeConverter
-
-