
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)
Constructor.
|
| 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.
|
List<String> |
getChannelNames()
Gets the list of channel names.
|
Double |
getChannelValue(String name)
Gets a monitored channel value.
|
Map<String,Object> |
getConfigurationMap()
Gets the map of configured values from all devices.
|
Device |
getDevice(String name)
Gets the device with the given name.
|
List<String> |
getDeviceNames()
Gets the list of all device names.
|
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)
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.
|
Double |
readChannelValue(String name)
Reads a monitored channel value.
|
void |
readSensors()
Reads the sensor data.
|
void |
reportConfigError(String cName,
String pName,
String message)
Reports configuration parameter error and exits.
|
void |
reportError(String cName,
String pName)
Reports missing parameter error.
|
void |
reportError(String cName,
String pName,
Object pValue)
Reports invalid parameter value error.
|
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)
Starts monitoring.
|
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)
checkPeriod - The online check period (ms)public void readSensors()
public void start()
public void start(int period)
period - The update period (ms)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 List<String> getDeviceNames()
public Map<String,Object> getConfigurationMap()
public 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 List<String> getChannelNames()
public Double getChannelValue(String name)
name - The channel namepublic Double readChannelValue(String name)
name - The channel namepublic 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, - alwaysExceptionpublic void reportError(String cName, String pName) throws Exception
cName - The component namepName - The parameter nameException, - alwaysExceptionCopyright © 2016 LSST. All rights reserved.