Class CockpitThresholds

java.lang.Object
com.uc4.api.objects.CockpitThresholds

public class CockpitThresholds extends Object
Represents the Threshold values for the CockpitControl Pie, Bar and TrafficLight. You can specify the minimum and maximum value as well as the threshold values for the yellow indicator.
  • Method Details

    • getMin

      public int getMin()
      Returns the minimal value.
      Returns:
      minimal value
    • setMin

      public void setMin(int min)
      Sets the minimal value.
      Parameters:
      min - minimal value
    • getMax

      public int getMax()
      Returns the maximal value.
      Returns:
      maximal value
    • setMax

      public void setMax(int max)
      Sets the maximal value.
      Parameters:
      max - maximal value
    • getThreshold1

      public int getThreshold1()
      Returns the maximal value for lowest indicator.
      Returns:
      maximal value for the lowest indicator.
    • setThreshold1

      public void setThreshold1(int threshold1)
      Sets the maximal value for the lowest indicator.
      Parameters:
      threshold1 - maximal value for the lowest indicator.
    • getThreshold2

      public int getThreshold2()
      Returns the maximal value for middle indicator (yellow area).
      Returns:
      maximal value for the middle indicator (yellow area).
    • setThreshold2

      public void setThreshold2(int threshold2)
      Sets the maximal value for the middle indicator (yellow area).
      Parameters:
      threshold2 - maximal value for the middle indicator (yellow area).