public class ChillerPlutoDevice
extends org.lsst.ccs.subsystem.common.devices.pluto.PlutoDevice
implements org.lsst.ccs.services.alert.AlertListener
| Constructor and Description |
|---|
ChillerPlutoDevice()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearAllLatches()
Clears all latched conditions.
|
void |
clearLatch(int cond)
Clears a latched condition.
|
int |
getErrorCode() |
ChillerPLCState |
getPlcState()
Gets the PLC state.
|
SwitchState |
getSwitchState(int sw)
Gets the state of a switch.
|
void |
init()
Init phase.
|
Boolean |
isConditionActive(int cond)
Gets whether a condition is active.
|
Boolean |
isLatchActive(int cond)
Gets whether a latched condition is active.
|
Boolean |
isLatchLatched(int cond)
Gets whether a latched condition is latched.
|
Boolean |
isPlcActive()
Tests whether the PLC is active
|
protected Boolean |
isSwitchOn(int sw)
Gets the on state of a switch.
|
void |
onAlert(org.lsst.ccs.services.alert.AlertEvent event)
Alert event handler.
|
protected void |
setSwitchOn(int sw,
boolean on)
Sets a switch on or off.
|
boolean |
updateState(ChillerPlcState plcState)
Updates the PLC state.
|
checkChannel, checkHwLine, close, initDevice, initialize, isHwLineSet, isPLCActive, readAddBit, readAddInt, readAddWord, readBit, readChannel, setHwLine, toggleBit, writeBit, writeRegisteraddLine, checkChannel, checkLine, checkTimeout, configure, disable, dropChannel, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, initChannel, initChannel, initChannel, initSensors, isEnabled, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setDisabled, setLine, setLineWarm, setOnline, setOutputLines, start, testOnlinepublic void init()
init in interface org.lsst.ccs.framework.HasLifecycleinit in class org.lsst.ccs.monitor.Devicepublic Boolean isPlcActive()
public ChillerPLCState getPlcState()
protected void setSwitchOn(int sw,
boolean on)
sw - The switch number.on - The on state to set: true or falsepublic SwitchState getSwitchState(int sw)
sw - The switch number.protected Boolean isSwitchOn(int sw)
sw - The switch number.public Boolean isLatchActive(int cond)
cond - The condition numberpublic Boolean isLatchLatched(int cond)
cond - The condition numberpublic void clearLatch(int cond)
cond - The condition numberpublic void clearAllLatches()
public Boolean isConditionActive(int cond)
cond - The condition numberpublic int getErrorCode()
public boolean updateState(ChillerPlcState plcState)
plcState - The PLC state to be updatedpublic void onAlert(org.lsst.ccs.services.alert.AlertEvent event)
onAlert in interface org.lsst.ccs.services.alert.AlertListenerevent - The alert eventCopyright © 2023 LSST. All rights reserved.