
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,
Logger logger)
Constructors.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkLimits()
Deprecated.
|
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 |
initSensors(int checkPeriod) |
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 |
saveLimits()
Saves the limit values.
|
void |
setOnline(BitSet mask,
boolean online)
Sets channels on- or off-line.
|
void |
setPublishData()
Sets the publish data flag.
|
void |
start()
Starts monitoring.
|
void |
start(int period) |
void |
updateState()
Updates the state of the monitoring system.
|
public Monitor(org.lsst.ccs.framework.Module mod,
Monitor.AlarmHandler alarmHand,
Logger logger)
mod - The associated modulealarmHand - The associated alarm handlerlogger - The associated loggerpublic void initConfiguration()
public void initSensors()
public void initSensors(int checkPeriod)
public void readSensors()
public void start()
public void start(int period)
public MonitorFullState getFullState()
public void publishState()
public void publishData()
public void publishLimits()
public void updateState()
@Deprecated public void checkLimits()
public void setPublishData()
public void clearLimitChanges()
public Device getDevice(String name)
name - The device namepublic Line getLine(String name)
name - The line namepublic Alarm getAlarm(String name)
name - The alarm namepublic Channel getChannel(String name)
name - The channel namepublic Channel getChannel(int id)
id - The channel IDpublic int getChannelId(String name)
name - The channel namepublic void setOnline(BitSet mask, boolean online)
mask - Mask of affected channelsonline - True if channels to be set online, false otherwisepublic int getNumChans()
public org.lsst.ccs.framework.Module getModule()
public void saveLimits()
public void reportError(String cName, String pName, Object pValue) throws Exception
cName - The component namepName - The parameter namepValue - The parameter valueException, - alwaysExceptionCopyright © 2016 LSST. All rights reserved.