public class Monitor extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Monitor.AlarmHandler
Interface for handling alarm events.
|
| Constructor and Description |
|---|
Monitor(org.lsst.ccs.framework.Module mod,
Monitor.AlarmHandler alarmHand,
org.lsst.ccs.utilities.logging.Logger logger)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkLimits()
Checks whether all current channel values are within limits.
|
void |
clearLimitChanges()
Clears limits-changed indicators.
|
Alarm |
getAlarm(String name)
Gets the alarm with the given name.
|
Channel |
getChannel(int id)
Gets the channel with the given ID.
|
Channel |
getChannel(String name)
Gets the channel with the given name.
|
int |
getChannelId(String name)
Gets the ID of the channel with the given name.
|
Device |
getDevice(String name)
Gets the device with the given name.
|
MonitorFullState |
getFullState()
Gets the full monitoring state.
|
Line |
getLine(String name)
Gets the line with the given name.
|
org.lsst.ccs.framework.Module |
getModule()
Gets the associated module.
|
int |
getNumChans()
Gets the number of channels.
|
void |
initConfiguration()
Initializes the monitoring configuration.
|
void |
initSensors()
Initializes the monitoring sensors.
|
void |
publishData()
Publishes all the data values of the monitoring module.
|
void |
publishLimits()
Publishes all the limit values of the monitoring module.
|
void |
publishState()
Publishes the state of the monitoring module.
|
void |
readSensors()
Reads the sensor data.
|
void |
reportConfigError(String cName,
String pName,
String message)
Reports configuration parameter errors and exits.
|
void |
reportError(String cName,
String pName,
Object pValue)
Reports parameter errors.
|
void |
setOnline(BitSet mask,
boolean online)
Sets channels on- or off-line.
|
void |
start()
Starts monitoring.
|
void |
start(long period) |
public Monitor(org.lsst.ccs.framework.Module mod,
Monitor.AlarmHandler alarmHand,
org.lsst.ccs.utilities.logging.Logger logger)
public void initConfiguration()
public void initSensors()
public void readSensors()
public void start()
public void start(long period)
public MonitorFullState getFullState()
public void publishState()
public void publishData()
public void publishLimits()
public void checkLimits()
public void clearLimitChanges()
public Channel getChannel(int id)
public int getChannelId(String name)
public void setOnline(BitSet mask, boolean online)
public int getNumChans()
public org.lsst.ccs.framework.Module getModule()
public void reportError(String cName, String pName, Object pValue) throws Exception
ExceptionCopyright © 2014 LSST. All Rights Reserved.