Package xal.app.knobs
Class KnobElement.CALimitsHandler
- java.lang.Object
-
- xal.app.knobs.KnobElement.CALimitsHandler
-
- All Implemented Interfaces:
KnobElement.LimitsHandler,xal.ca.ConnectionListener,xal.ca.IEventSinkValDbl
- Enclosing class:
- KnobElement
protected class KnobElement.CALimitsHandler extends Object implements KnobElement.LimitsHandler, xal.ca.ConnectionListener, xal.ca.IEventSinkValDbl
CA limits handler
-
-
Field Summary
Fields Modifier and Type Field Description protected xal.ca.Channel_lowerChannelthe channel with the lower limitprotected xal.ca.Channel_upperChannelthe channel with the upper limit
-
Constructor Summary
Constructors Modifier Constructor Description protectedCALimitsHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnectionDropped(xal.ca.Channel channel)handle the disconnect eventvoidconnectionMade(xal.ca.Channel channel)handle the connection eventvoideventValue(double value, xal.ca.Channel channel)handle the get value callbackStringgetInactiveExcuse()Determine the reason for not being readybooleanisReady()Determine if the limits handler is readyvoidsetChannel(xal.ca.Channel channel)set a new channel whose limits we wish to monitor TODO: This will not work for PVaccess, but that's maybe not necessary?voidupdateLimits()update the limits
-
-
-
Method Detail
-
setChannel
public void setChannel(xal.ca.Channel channel)
set a new channel whose limits we wish to monitor TODO: This will not work for PVaccess, but that's maybe not necessary?
-
connectionMade
public void connectionMade(xal.ca.Channel channel)
handle the connection event- Specified by:
connectionMadein interfacexal.ca.ConnectionListener
-
connectionDropped
public void connectionDropped(xal.ca.Channel channel)
handle the disconnect event- Specified by:
connectionDroppedin interfacexal.ca.ConnectionListener
-
eventValue
public void eventValue(double value, xal.ca.Channel channel)handle the get value callback- Specified by:
eventValuein interfacexal.ca.IEventSinkValDbl
-
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
-
-