
public abstract class PowerDevice
extends org.lsst.ccs.subsystem.monitor.Device
| Modifier and Type | Field and Description |
|---|---|
protected static int |
CONN_TYPE_NOT_CONFIG
Constants.
|
protected int |
connType |
protected Power.ConnType |
connTypeE |
protected String |
connTypeS
Data fields.
|
protected static int |
DEVC_ID_NOT_CONFIG
Constants.
|
protected static int |
DEVC_PARM_NOT_CONFIG
Constants.
|
protected String |
devcId |
protected int |
devcParm |
protected static int |
NETWORK_CONN_INVALID
Constants.
|
| Constructor and Description |
|---|
PowerDevice(String connType,
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 void |
configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
Performs configuration.
|
String |
getConnType() |
String |
getDevcId() |
int |
getDevcParm() |
protected abstract int |
getMaxChannel()
Gets the maximum hardware channel number.
|
protected abstract int |
getMinChannel()
Gets the minimum hardware channel number.
|
protected abstract int |
getOptions()
Gets the device options.
|
Power |
getPowerConfig()
Gets the configuration data.
|
protected List<PowerState> |
getPowerState()
Gets the list of power state data.
|
protected void |
powerOff()
Powers off all channels.
|
protected void |
powerOn()
Powers on all channels.
|
protected double |
readCurrent(int hwChan)
Reads the current from the hardware.
|
protected void |
readCurrentGroup()
Reads a group of currents from the hardware.
|
protected abstract double |
readCurrentHdw(int hwChan)
Reads the current from the hardware.
|
protected boolean |
readOutput(int hwChan)
Reads the power output state from the hardware.
|
protected void |
readOutputGroup()
Reads a group of power output states from the hardware.
|
protected abstract boolean |
readOutputHdw(int hwChan)
Reads the power output state from the hardware.
|
protected double |
readVoltage(int hwChan)
Reads the voltage from the hardware.
|
protected void |
readVoltageGroup()
Reads a group of voltages from the hardware.
|
protected abstract double |
readVoltageHdw(int hwChan)
Reads the voltage from the hardware.
|
void |
setConnType(String connTypeS)
Sets/gets the connection type.
|
void |
setDevcId(String devcId)
Sets/gets the device ID.
|
void |
setDevcParm(int devcParm)
Sets/gets the device parameter.
|
void |
setPowerConfig(Power power)
Sets the configuration data.
|
protected void |
writeCurrent(double current,
int hwChan)
Writes the current to the hardware.
|
protected void |
writeCurrentGroup()
Writes a group of currents to the hardware.
|
protected abstract void |
writeCurrentHdw(double current,
int hwChan)
Writes the current to the hardware.
|
protected void |
writeOffDelay(double offDelay,
int hwChan)
Writes the power-off delay to the hardware.
|
protected void |
writeOffDelayGroup()
Writes a group of power-off delays to the hardware.
|
protected abstract void |
writeOffDelayHdw(double offDelay,
int hwChan)
Writes the power-off delay to the hardware.
|
protected void |
writeOnDelay(double onDelay,
int hwChan)
Writes the power-on delay to the hardware.
|
protected void |
writeOnDelayGroup()
Writes a group of power-on delays to the hardware.
|
protected abstract void |
writeOnDelayHdw(double onDelay,
int hwChan)
Writes the power-on delay to the hardware.
|
protected void |
writeOutput(boolean value,
int hwChan)
Writes the power output state to the hardware.
|
protected void |
writeOutputGroup()
Writes a group of power output states to the hardware.
|
protected abstract void |
writeOutputHdw(boolean value,
int hwChan)
Writes the power output state to the hardware.
|
protected void |
writeVoltage(double voltage,
int hwChan)
Writes the voltage to the hardware.
|
protected void |
writeVoltageGroup()
Writes a group of voltages to the hardware.
|
protected abstract void |
writeVoltageHdw(double voltage,
int hwChan)
Writes the voltage to the hardware.
|
addChannel, addLine, checkChannel, checkHwLine, checkLine, checkOnline, checkTimeout, close, dropChannel, getConfigValues, getFullName, getOutputLines, initChannel, initialize, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlinegetChildren, getEnvironment, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalias, change, getCheckedValueFromConfiguration, getComponentByName, getDictionary, getName, getParent, getParentObject, getSubsystem, init, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, postStart, proceduralWalk, publish, publish, publish, publish, publish, publish, shutdownNow, start, treeWalkprotected static final int NETWORK_CONN_INVALID
protected static final int CONN_TYPE_NOT_CONFIG
protected static final int DEVC_ID_NOT_CONFIG
protected static final int DEVC_PARM_NOT_CONFIG
protected String connTypeS
protected String devcId
protected int devcParm
protected int connType
protected Power.ConnType connTypeE
protected void configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
configure in class org.lsst.ccs.subsystem.monitor.Device@ConfigChanger public void setConnType(String connTypeS) throws VSTException
VSTException@Command(type=QUERY, description="Gets the connection type") public String getConnType()
@ConfigChanger public void setDevcId(String devcId)
@Command(type=QUERY, description="Gets the device ID") public String getDevcId()
@ConfigChanger public void setDevcParm(int devcParm)
@Command(type=QUERY, description="Gets the device parameter") public int getDevcParm()
public Power getPowerConfig()
public void setPowerConfig(Power power) throws Exception
Exceptionprotected void addConfigValues(Map<String,Object> values)
addConfigValues in class org.lsst.ccs.subsystem.monitor.Deviceprotected List<PowerState> getPowerState() throws Exception
Exceptionprotected void writeVoltage(double voltage,
int hwChan)
throws Exception
Exceptionprotected double readVoltage(int hwChan)
throws Exception
Exceptionprotected void writeCurrent(double current,
int hwChan)
throws Exception
Exceptionprotected double readCurrent(int hwChan)
throws Exception
Exceptionprotected void writeOnDelay(double onDelay,
int hwChan)
throws Exception
Exceptionprotected void writeOffDelay(double offDelay,
int hwChan)
throws Exception
Exceptionprotected void writeOutput(boolean value,
int hwChan)
throws Exception
Exceptionprotected boolean readOutput(int hwChan)
throws Exception
Exceptionprotected abstract int getOptions()
protected abstract int getMinChannel()
protected abstract int getMaxChannel()
protected abstract void writeVoltageHdw(double voltage,
int hwChan)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected void writeVoltageGroup()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected abstract double readVoltageHdw(int hwChan)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected void readVoltageGroup()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected abstract void writeCurrentHdw(double current,
int hwChan)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected void writeCurrentGroup()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected abstract double readCurrentHdw(int hwChan)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected void readCurrentGroup()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected abstract void writeOnDelayHdw(double onDelay,
int hwChan)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected void writeOnDelayGroup()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected abstract void writeOffDelayHdw(double offDelay,
int hwChan)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected void writeOffDelayGroup()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected abstract void writeOutputHdw(boolean value,
int hwChan)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected void writeOutputGroup()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected abstract boolean readOutputHdw(int hwChan)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected void readOutputGroup()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2015 LSST. All rights reserved.