Package com.uc4.api.objects
Class CockpitThresholds
java.lang.Object
com.uc4.api.objects.CockpitThresholds
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 Summary
Modifier and TypeMethodDescriptionintgetMax()Returns the maximal value.intgetMin()Returns the minimal value.intReturns the maximal value for lowest indicator.intReturns the maximal value for middle indicator (yellow area).voidsetMax(int max) Sets the maximal value.voidsetMin(int min) Sets the minimal value.voidsetThreshold1(int threshold1) Sets the maximal value for the lowest indicator.voidsetThreshold2(int threshold2) Sets the maximal value for the middle indicator (yellow area).
-
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).
-