
public class PowerControl
extends org.lsst.ccs.subsystem.monitor.Control
| Constructor and Description |
|---|
PowerControl(String desc,
int hwChan,
double voltage,
double current,
double onDelay,
double offDelay)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigValues(Map<String,Object> values)
Adds to a map of configured values.
|
void |
changeVoltage(double value)
Changes the voltage.
|
protected void |
configure(org.lsst.ccs.subsystem.monitor.Monitor mon,
org.lsst.ccs.subsystem.monitor.Device devc)
Configures channel description.
|
double |
getCurrent() |
double |
getOffDelay() |
double |
getOnDelay() |
double |
getVoltage() |
void |
setCurrent(double value)
Sets/gets the current.
|
void |
setOffDelay(double value)
Sets/gets the power-off delay.
|
void |
setOnDelay(double value)
Sets/gets the power-on delay.
|
void |
setVoltage(double value)
Sets/gets the voltage.
|
checkOnline, checkTimeout, getConfigValues, getDescription, getHwChan, 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, treeWalkpublic PowerControl(String desc, int hwChan, double voltage, double current, double onDelay, double offDelay)
desc - DescriptionhwChan - Hardware channel numbervoltage - The set voltagecurrent - The set current limitonDelay - The turn-on delay (sec)offDelay - The turn-off delay (dec)protected void configure(org.lsst.ccs.subsystem.monitor.Monitor mon,
org.lsst.ccs.subsystem.monitor.Device devc)
configure in class org.lsst.ccs.subsystem.monitor.Controlmon - The associated monitordevc - The parent Device@ConfigChanger public void setVoltage(double value)
value - The value to set@Command(type=QUERY, description="Gets the set voltage") public double getVoltage()
@ConfigChanger public void setCurrent(double value)
value - The value to set@Command(type=QUERY, description="Gets the set current") public double getCurrent()
@ConfigChanger public void setOnDelay(double value)
value - The value to set@Command(type=QUERY, description="Gets the power-on delay") public double getOnDelay()
@ConfigChanger public void setOffDelay(double value)
value - The value to set@Command(type=QUERY, description="Gets the power-off delay") public double getOffDelay()
@Command(type=ACTION, description="Changes the voltage") public void changeVoltage(double value) throws Exception
value - The value to setExceptionCopyright © 2015 LSST. All rights reserved.