
public abstract class PowerDevice
extends org.lsst.ccs.subsystem.monitor.Device
| Modifier and Type | Class and Description |
|---|---|
static class |
PowerDevice.PowerState
Inner class for saving the power state of a channel.
|
| Constructor and Description |
|---|
PowerDevice() |
| Modifier and Type | Method and Description |
|---|---|
void |
enableOutput(int chan,
boolean enable)
Enables the output.
|
abstract boolean |
getOutput(int chan)
Gets the output state.
|
abstract double |
readCurrent(int chan)
Reads the current.
|
abstract double |
readVoltage(int chan)
Reads the voltage.
|
abstract void |
setCurrent(int chan,
double value)
Sets the current.
|
protected void |
setOnline(boolean online)
Sets the online state.
|
abstract void |
setOutput(int chan,
boolean value)
Sets the output state.
|
void |
setPower(int chan,
double value)
Sets the power.
|
abstract void |
setVoltage(int chan,
double value)
Sets the voltage.
|
addChannel, addConfigValues, addLine, checkChannel, checkHwLine, checkLine, checkOnline, checkTimeout, close, configure, disable, dropChannel, enable, getConfigValues, getFullName, getOutputLines, initChannel, initChannel, initialize, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, readSensors, setHwLine, setLine, setLineWarm, 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 void enableOutput(int chan,
boolean enable)
chan - The hardware channelenable - The enabled state to setpublic void setPower(int chan,
double value)
chan - The hardware channelvalue - The power to setprotected void setOnline(boolean online)
setOnline in class org.lsst.ccs.subsystem.monitor.Deviceonline - The online state to set: true or falsepublic abstract void setVoltage(int chan,
double value)
chan - The hardware channelvalue - The voltage to setpublic abstract void setCurrent(int chan,
double value)
chan - The hardware channelvalue - The current to setpublic abstract void setOutput(int chan,
boolean value)
chan - The hardware channelvalue - The output state to setpublic abstract double readVoltage(int chan)
chan - The hardware channelpublic abstract double readCurrent(int chan)
chan - The hardware channelpublic abstract boolean getOutput(int chan)
chan - The hardware channelCopyright © 2017 LSST. All rights reserved.