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, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, printConfigurableParameters, setBulkParameter, submitChange, submitChanges, validateBulkChangesetParameterBulkpublic 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 (sec)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@ConfigurationParameterChanger public void setVoltage(double value)
value - The value to set@Command(type=QUERY,
description="Gets the set voltage")
public double getVoltage()
@ConfigurationParameterChanger public void setCurrent(double value)
value - The value to set@Command(type=QUERY,
description="Gets the set current")
public double getCurrent()
@ConfigurationParameterChanger public void setOnDelay(double value)
value - The value to set@Command(type=QUERY,
description="Gets the power-on delay")
public double getOnDelay()
@ConfigurationParameterChanger 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 © 2017 LSST. All rights reserved.