
public class EpduG3Device
extends org.lsst.ccs.monitor.Device
| Modifier and Type | Class and Description |
|---|---|
static interface |
EpduG3Device.Event
Interface for open/close event listener.
|
| Constructor and Description |
|---|
EpduG3Device(String devcId,
int devcParm)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getDevcId()
Gets the device ID.
|
int |
getDevcParm()
Gets the device parameter.
|
protected String |
getPsId()
Gets the power supply ID.
|
protected int[] |
getState()
Gets the power state data.
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Performs full initialization.
|
protected double |
readChannel(int hwChan,
int type)
Reads a monitoring channel.
|
void |
setDevcId(String devcId)
Sets the device ID.
|
void |
setDevcParm(int devcParm)
Sets the device parameter.
|
protected void |
setListener(EpduG3Device.Event listen)
Sets an event listener.
|
protected void |
setPowerOn(int reb,
int psNum,
boolean on)
Turns a power supply on or off.
|
protected void |
togglePower(int reb,
int psNum)
Toggles the on/off state of a power supply.
|
addChannel, addLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getFullName, getName, getOutputLines, init, initChannel, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic EpduG3Device(String devcId, int devcParm)
devcId - The host namedevcParm - The port numberprotected void initDevice()
initDevice in class org.lsst.ccs.monitor.Device@ConfigurationParameterChanger public void setDevcId(String devcId)
devcId - The device identification string@Command(type=QUERY, description="Gets the device ID") public String getDevcId()
@ConfigurationParameterChanger 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.monitor.Deviceprotected void close()
close in class org.lsst.ccs.monitor.Deviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.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.monitor.DevicehwChan - The hardware channel numbertype - The encoded channel typeprotected int[] getState()
throws PowerException
PowerExceptionprotected void setPowerOn(int reb,
int psNum,
boolean on)
throws PowerException
reb - The REB numberpsNum - The power supply number, or -1 for master switchon - Turn on if true, off if falsePowerExceptionprotected void togglePower(int reb,
int psNum)
throws PowerException
reb - The REB numberpsNum - The power supply number, or -1 for master switchPowerExceptionprotected void setListener(EpduG3Device.Event listen)
listen - The listener objectprotected void clearListener()
protected String getPsId()
Copyright © 2018 LSST. All rights reserved.