java.lang.Object
java.lang.Enum<AgeRestriction>
com.inductiveautomation.ignition.common.sqltags.model.types.AgeRestriction
All Implemented Interfaces:
Localized, Serializable, Comparable<AgeRestriction>, Constable

public enum AgeRestriction extends Enum<AgeRestriction> implements Localized
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).

  • Enum Constant Details

  • Method Details

    • values

      public static AgeRestriction[] 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

      public static AgeRestriction valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getIntValue

      public int getIntValue()
      Returns the integer representation of this enum
    • isTimeRestriction

      public boolean isTimeRestriction()
    • getAsTimeUnits

      public TimeUnits getAsTimeUnits()
      Returns the TimeUnits for the value, if the value is a time restriction. Otherwise, returns null.
    • getTypeForValue

      public static AgeRestriction getTypeForValue(int val)
      Returns the AgeRestriction for the given type code. Returns Unlimited if there is no value defined mode for the given value.
    • cappedValues

      public static AgeRestriction[] cappedValues()
    • toString

      public String toString(Locale locale)
      Specified by:
      toString in interface Localized