public class RebPsDevice
extends org.lsst.ccs.subsystem.monitor.Device
| Modifier and Type | Class and Description |
|---|---|
static interface |
RebPsDevice.Event
Interface for open/close event listener.
|
| Constructor and Description |
|---|
RebPsDevice(String devcId,
int devcParm)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addConfigValues(Map<String,Object> values)
Adds to the map of configured values.
|
protected int[] |
checkChannel(String name,
int hwChan,
String type,
String subtype)
Checks a monitoring channel's parameters for validity.
|
protected void |
clearListener()
Clears the event listener.
|
protected void |
close()
Closes the connection.
|
protected void |
configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
Performs configuration.
|
protected double[] |
getBiasDacs()
Gets the HV bias DAC values.
|
String |
getDevcId()
Gets the device ID.
|
int |
getDevcParm()
Gets the device parameter.
|
protected int[] |
getErrors()
Gets the error counters.
|
protected String |
getPsId()
Gets the power supply ID.
|
protected int[] |
getState()
Gets the power state data.
|
protected void |
initialize()
Performs full initialization.
|
protected double |
readChannel(int hwChan,
int type)
Reads a monitoring channel.
|
protected void |
sequencePower(boolean on)
Sequences a whole power supply on or off.
|
protected void |
sequencePower(int reb,
boolean on)
Sequences a power supply section on or off.
|
protected void |
setBiasDac(int rebNum,
double value)
Sets a HV bias DAC value.
|
void |
setDevcId(String devcId)
Sets the device ID.
|
void |
setDevcParm(int devcParm)
Sets the device parameter.
|
protected void |
setListener(RebPsDevice.Event listen)
Sets an event listener.
|
protected void |
togglePower(int reb,
int psNum)
Toggles the on/off state of a power supply element.
|
addChannel, addLine, checkHwLine, checkLine, checkOnline, checkTimeout, disable, dropChannel, enable, getConfigValues, getFullName, getOutputLines, initChannel, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannelGroup, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlinegetChildren, getEnvironment, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getCheckedValueFromConfiguration, getComponentByName, getName, getParent, getParentObject, getSubmittedChanges, getSubsystem, init, isParameterConfigurable, notifyChange, notifyChangeWithoutPreliminaryChecks, postStart, printConfigurableParameters, setBulkParameter, shutdownNow, start, submitChange, submitChanges, validateBulkChangepublic RebPsDevice(String devcId, int devcParm)
devcId - The host namedevcParm - The port numberprotected void configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
configure in class org.lsst.ccs.subsystem.monitor.Devicemon - The monitor object@ConfigChanger public void setDevcId(String devcId)
devcId - The device identification string@Command(type=QUERY,
description="Gets the device ID")
public String getDevcId()
@ConfigChanger public void setDevcParm(int devcParm)
devcParm - The device parameter@Command(type=QUERY,
description="Gets the device parameter")
public int getDevcParm()
protected void initialize()
initialize in class org.lsst.ccs.subsystem.monitor.Deviceprotected void close()
close in class org.lsst.ccs.subsystem.monitor.Deviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.subsystem.monitor.Devicename - The channel namehwChan - The hardware channeltype - The channel type stringsubtype - The channel subtype stringException - If parameters are invalidprotected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.subsystem.monitor.DevicehwChan - The hardware channel numbertype - The encoded channel typeprotected void addConfigValues(Map<String,Object> values)
addConfigValues in class org.lsst.ccs.subsystem.monitor.Devicevalues - The map of values to be added toprotected int[] getState()
throws PowerException
PowerExceptionprotected double[] getBiasDacs()
throws PowerException
PowerExceptionprotected void setBiasDac(int rebNum,
double value)
throws PowerException
rebNum - The REB numbervalue - The value to setPowerExceptionprotected void togglePower(int reb,
int psNum)
throws PowerException
reb - The REB numberpsNum - The power supply number, or -1 for master switchPowerExceptionprotected void sequencePower(int reb,
boolean on)
throws PowerException
reb - The REB numberon - Turns on if true, off if falsePowerExceptionprotected void sequencePower(boolean on)
throws PowerException
on - Turns on if true, off if falsePowerExceptionprotected void setListener(RebPsDevice.Event listen)
listen - The listener objectprotected void clearListener()
protected int[] getErrors()
protected String getPsId()
Copyright © 2016 LSST. All rights reserved.