Class TimescalingProperties
- java.lang.Object
-
- cern.nxcals.api.backport.domain.core.constants.TimescalingProperties
-
- All Implemented Interfaces:
java.io.Serializable
public class TimescalingProperties extends java.lang.Object implements java.io.SerializableTimescale properties class for time scaling purpose. Use the static method TimeScaleProperties.getTimeScaleProperties(ScaleAlgorithm algorithm, short scaleSize, LoggingTimeInterval timeInterval)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimescalingProperties(ScaleAlgorithm timescaleAlgorithm, short scaleSize, LoggingTimeInterval timescaleInterval)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringabbrev()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)longgetNumberOfSecondsInInterval()shortgetScaleSize()longgetTimeMs()ScaleAlgorithmgetTimescaleAlgorithm()LoggingTimeIntervalgetTimescaleInterval()static TimescalingPropertiesgetTimeScaleProperties(ScaleAlgorithm algorithm, short scaleSize, LoggingTimeInterval timeInterval)Returns the time scale propertiesinthashCode()java.lang.StringtoDBString()java.lang.StringtoString()static TimescalingPropertiesvalueOf(java.lang.String string)
-
-
-
Constructor Detail
-
TimescalingProperties
public TimescalingProperties(ScaleAlgorithm timescaleAlgorithm, short scaleSize, LoggingTimeInterval timescaleInterval)
-
-
Method Detail
-
getTimeScaleProperties
public static TimescalingProperties getTimeScaleProperties(ScaleAlgorithm algorithm, short scaleSize, LoggingTimeInterval timeInterval)
Returns the time scale properties- Parameters:
algorithm- The algorithmscaleSize- The sizetimeInterval- The interval- Returns:
- The time scale properties
-
getTimeMs
public long getTimeMs()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
abbrev
public java.lang.String abbrev()
-
getNumberOfSecondsInInterval
public long getNumberOfSecondsInInterval()
-
toDBString
public java.lang.String toDBString()
-
valueOf
public static TimescalingProperties valueOf(java.lang.String string)
-
getTimescaleAlgorithm
public ScaleAlgorithm getTimescaleAlgorithm()
-
getScaleSize
public short getScaleSize()
-
getTimescaleInterval
public LoggingTimeInterval getTimescaleInterval()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-