Class LegacyConversions

java.lang.Object
com.inductiveautomation.historian.gateway.interop.LegacyConversions

public final class LegacyConversions extends Object
Conversions between legacy tag history query flags and annotations and their Historian types.
  • Method Details

    • fromLegacyQueryFlags

      public static PropertySet fromLegacyQueryFlags(Flags flags)
      Maps each tag history query flag to its property.
      Parameters:
      flags - the flags to convert
      Returns:
      the equivalent properties
    • toLegacyAnnotation

      public static Annotation toLegacyAnnotation(AnnotationPoint point)
      Converts an AnnotationPoint to an Annotation.
      Parameters:
      point - the point to convert
      Returns:
      the equivalent annotation
    • toAnnotationPoint

      public static AnnotationPoint toAnnotationPoint(Annotation annotation)
      Converts an Annotation to an AnnotationPoint.
      Parameters:
      annotation - the annotation to convert
      Returns:
      the equivalent point
    • toAnnotationChangePoint

      public static AnnotationChangePoint toAnnotationChangePoint(Annotation annotation)
      Converts an Annotation to an AnnotationChangePoint from its storage id, path, range start and state.
      Parameters:
      annotation - the annotation to convert
      Returns:
      the equivalent change point