public abstract class Control
extends org.lsst.ccs.framework.ConfigurableComponent
| Modifier and Type | Field and Description |
|---|---|
protected String |
description
Data fields.
|
protected Device |
devc |
protected int |
hwChan |
protected org.lsst.ccs.utilities.logging.Logger |
log |
protected Monitor |
mon |
| Constructor and Description |
|---|
Control(String desc,
int hwChan)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addConfigValues(Map<String,Object> map)
Adds to a map of configured values.
|
protected void |
checkOnline()
Checks the online state.
|
protected void |
checkTimeout(Exception e,
Class<?> eClass)
Checks whether exception is a timeout.
|
protected void |
configure(Monitor mon,
Device devc)
Configures common part of control channel.
|
Map<String,Object> |
getConfigValues()
Gets the map of configured values.
|
String |
getDescription()
Gets the channel description.
|
int |
getHwChan()
Gets the hardware channel number.
|
protected boolean |
testOnline()
Tests the online state.
|
getChildren, getEnvironment, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalias, change, getCheckedValueFromConfiguration, getComponentByName, getFullPath, getName, getParent, getParentObject, getSubsystem, init, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, postStart, proceduralWalk, shutdownNow, start, treeWalkprotected final String description
protected final int hwChan
protected Device devc
protected Monitor mon
protected org.lsst.ccs.utilities.logging.Logger log
public Control(String desc, int hwChan)
desc - The descriptive namehwChan - The hardware channel numberprotected void configure(Monitor mon, Device devc)
mon - The associated monitordevc - The associated devicepublic String getDescription()
public int getHwChan()
public Map<String,Object> getConfigValues()
public abstract void addConfigValues(Map<String,Object> map)
map - The map of configured values to be updatedprotected void checkOnline()
protected boolean testOnline()
protected void checkTimeout(Exception e, Class<?> eClass) throws Exception
e - The exception to be checked.eClass - The class of the exception to be thrown.ExceptionCopyright © 2015 LSST. All rights reserved.