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.Serializable
Timescale 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.String
abbrev()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
long
getNumberOfSecondsInInterval()
short
getScaleSize()
long
getTimeMs()
ScaleAlgorithm
getTimescaleAlgorithm()
LoggingTimeInterval
getTimescaleInterval()
static TimescalingProperties
getTimeScaleProperties(ScaleAlgorithm algorithm, short scaleSize, LoggingTimeInterval timeInterval)
Returns the time scale propertiesint
hashCode()
java.lang.String
toDBString()
java.lang.String
toString()
static TimescalingProperties
valueOf(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:
toString
in 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:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-