Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScaledTimeConverter

        public ScaledTimeConverter​(long srcInitialTime,
                                   long dstInitialTime,
                                   double speed)
    • Method Detail