
public class Compressor extends Object implements org.lsst.ccs.framework.HasLifecycle, org.lsst.ccs.monitor.Monitor.AlarmHandler
| Modifier and Type | Class and Description |
|---|---|
static interface |
Compressor.SwitchDevice |
| Constructor and Description |
|---|
Compressor(CompState state)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Gets the compressor index.
|
CompState |
getState()
Gets the compressor state.
|
void |
postInit()
Initializes the compressor control.
|
boolean |
processAlarm(int event,
int parm,
String cause,
String name)
Handles alarm events.
|
void |
resetLatches()
Resets the latches.
|
void |
setIndex(int index)
Sets the compressor index.
|
void |
setSwitchOn(int sw,
boolean on)
Turns a switch on or off..
|
boolean |
updateState()
Updates the compressor state.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuild, init, postBuild, postShutdown, postStart, shutdown, startpublic Compressor(CompState state)
state - The compressor state objectpublic void postInit()
postInit in interface org.lsst.ccs.framework.HasLifecyclepublic void setIndex(int index)
index - The index valuepublic int getIndex()
@Command(type=ACTION,
description="Set a compressor\'s switch state")
public void setSwitchOn(@Argument(description="Switch number")
int sw,
@Argument(description="Whether to turn on")
boolean on)
throws RefrigException
sw - The switch IDon - Whether to turn onRefrigException@Command(type=ACTION,
description="Reset a compressor\'s latches")
public void resetLatches()
public boolean updateState()
public CompState getState()
public boolean processAlarm(int event,
int parm,
String cause,
String name)
processAlarm in interface org.lsst.ccs.monitor.Monitor.AlarmHandlerevent - The event typeparm - The event parametercause - The alarm causename - The alarm nameCopyright © 2019 LSST. All rights reserved.