Package xal.app.knobs
Class KnobElement.CustomLimitsHandler
- java.lang.Object
-
- xal.app.knobs.KnobElement.CustomLimitsHandler
-
- All Implemented Interfaces:
KnobElement.LimitsHandler
- Enclosing class:
- KnobElement
protected class KnobElement.CustomLimitsHandler extends Object implements KnobElement.LimitsHandler
Custom limits handler
-
-
Field Summary
Fields Modifier and Type Field Description protected double_lowerCustomLimitlower custom limitprotected double_upperCustomLimitupper custom limit
-
Constructor Summary
Constructors Constructor Description CustomLimitsHandler()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInactiveExcuse()Determine the reason for not being readydoublegetLowerLimit()Get the lower custom limit.doublegetUpperLimit()Get the upper custom limit.booleanisReady()Determine if the limits handler is readyvoidsetLowerLimit(double lowerLimit)Set the lower custom limit.voidsetUpperLimit(double upperLimit)Set the upper custom limit.voidupdateLimits()update the limits
-
-
-
Method Detail
-
setLowerLimit
public void setLowerLimit(double lowerLimit)
Set the lower custom limit.- Parameters:
lowerLimit- the new custom lower limit
-
getLowerLimit
public double getLowerLimit()
Get the lower custom limit.- Returns:
- the lower custom limit
-
getUpperLimit
public double getUpperLimit()
Get the upper custom limit.- Returns:
- the upper custom limit
-
setUpperLimit
public void setUpperLimit(double upperLimit)
Set the upper custom limit.- Parameters:
upperLimit- the new custom upper limit
-
updateLimits
public void updateLimits()
update the limits- Specified by:
updateLimitsin interfaceKnobElement.LimitsHandler
-
isReady
public boolean isReady()
Determine if the limits handler is ready- Specified by:
isReadyin interfaceKnobElement.LimitsHandler
-
getInactiveExcuse
public String getInactiveExcuse()
Determine the reason for not being ready- Specified by:
getInactiveExcusein interfaceKnobElement.LimitsHandler
-
-