Class TimescalingProperties

java.lang.Object
cern.nxcals.api.backport.domain.core.constants.TimescalingProperties
All Implemented Interfaces:
Serializable

public class TimescalingProperties extends Object implements Serializable
Timescale properties class for time scaling purpose. Use the static method TimeScaleProperties.getTimeScaleProperties(ScaleAlgorithm algorithm, short scaleSize, LoggingTimeInterval timeInterval)
See Also:
  • Constructor Details

  • Method Details

    • getTimeScaleProperties

      public static TimescalingProperties getTimeScaleProperties(ScaleAlgorithm algorithm, short scaleSize, LoggingTimeInterval timeInterval)
      Returns the time scale properties
      Parameters:
      algorithm - The algorithm
      scaleSize - The size
      timeInterval - The interval
      Returns:
      The time scale properties
    • getTimeMs

      public long getTimeMs()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • abbrev

      public String abbrev()
    • getNumberOfSecondsInInterval

      public long getNumberOfSecondsInInterval()
    • toDBString

      public String toDBString()
    • valueOf

      public static TimescalingProperties valueOf(String string)
    • getTimescaleAlgorithm

      public ScaleAlgorithm getTimescaleAlgorithm()
    • getScaleSize

      public short getScaleSize()
    • getTimescaleInterval

      public LoggingTimeInterval getTimescaleInterval()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object