Enum Class AgeRestriction
java.lang.Object
java.lang.Enum<AgeRestriction>
com.inductiveautomation.ignition.common.sqltags.model.types.AgeRestriction
- All Implemented Interfaces:
Localized
,Serializable
,Comparable<AgeRestriction>
,Constable
Describes how the age of something (such as a historical tag value) is handled.
This enum has been modified to include time based capping (it was originally just unlimited, or "capped" - based on execution count).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis value means "capped, X executions" -
Method Summary
Modifier and TypeMethodDescriptionstatic AgeRestriction[]
Returns the TimeUnits for the value, if the value is a time restriction.int
Returns the integer representation of this enumstatic AgeRestriction
getTypeForValue
(int val) Returns the AgeRestriction for the given type code.boolean
static AgeRestriction
Returns the enum constant of this class with the specified name.static AgeRestriction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Unlimited
-
Capped
This value means "capped, X executions" -
Capped_MS
-
Capped_Sec
-
Capped_Min
-
Capped_Hour
-
Capped_Day
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getIntValue
public int getIntValue()Returns the integer representation of this enum -
isTimeRestriction
public boolean isTimeRestriction() -
getAsTimeUnits
Returns the TimeUnits for the value, if the value is a time restriction. Otherwise, returns null. -
getTypeForValue
Returns the AgeRestriction for the given type code. Returns Unlimited if there is no value defined mode for the given value. -
cappedValues
-
toString
-