
public abstract class Control extends Object implements HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
protected String |
description
Data fields.
|
protected Device |
devc |
protected int |
hwChan |
protected Logger |
log |
protected Monitor |
mon |
| Constructor and Description |
|---|
Control() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getDescription()
Gets the channel description.
|
int |
getHwChan()
Gets the hardware channel number.
|
String |
getName()
Get the name as specified in the lookup tree for this object.
|
Subsystem |
getSubsystem()
Get the Subsystem this object belongs to.
|
void |
init()
Called from the enclosing
Subsystem at initialization
phase. |
protected boolean |
testOnline()
Tests the online state.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuild, postBuild, postInit, postShutdown, postStart, shutdown, startprotected String description
protected int hwChan
@LookupField(strategy=ANCESTORS) protected Device devc
@LookupField(strategy=TREE) protected Monitor mon
protected Logger log
public void init()
HasLifecycleSubsystem at initialization
phase.
This method is called before the children components of this
object have their init method called.
At the time it is called, connection to the messaging layer is not yet
done, so there should be no attempt to send messages in the body of
this method. Configuration for message listening can nevertheless be
done here, such as adding MessageListener
objects.
It is unnecessary to call super.init()
init in interface HasLifecycleprotected void configure(Monitor mon, Device devc)
mon - The associated monitordevc - The associated devicepublic String getDescription()
public int getHwChan()
protected 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.Exceptionpublic String getName()
public Subsystem getSubsystem()
Copyright © 2021 LSST. All rights reserved.