Abstract class for a Sensor. More...
Public Member Functions | |
_.Library.Integer | ClearNotifications () |
USER DOES NOT IMPLEMENT THIS METHOD. More... | |
_.Library.Integer | ClearSensors () |
USER DOES NOT IMPLEMENT THIS METHOD. More... | |
_.Library.Status | GetSensors () |
USER MUST IMPLEMENT THIS METHOD. More... | |
_.Library.Status | LogCon (_.Library.String Msg, _.Library.Integer Severity) |
USER DOES NOT IMPLEMENT THIS METHOD. More... | |
_.Library.Status | LogMsg (_.Library.String msg) |
USER DOES NOT IMPLEMENT THIS METHOD. More... | |
_.Library.Integer | Notify (_.Library.String Sensor, _.Library.Integer Severity, _.Library.String Msg) |
USER DOES NOT IMPLEMENT THIS METHOD. More... | |
_.Library.Status | OpenLog () |
USER DOES NOT IMPLEMENT THIS METHOD. More... | |
_.Library.Integer | SetSensor (_.Library.String Sensor, _.Library.String Value, _.Library.String Qualifier) |
USER DOES NOT IMPLEMENT THIS METHOD. More... | |
_.Library.Status | Start () |
USER MAY IMPLEMENT THIS METHOD. More... | |
Public Attributes | |
Notifications | |
More... | |
State | |
Runtime state. More... | |
Abstract class for a Sensor.
User classes inherit from this class to become a Sensor for System Monitor.
_.Library.Integer ClearNotifications | ( | ) |
USER DOES NOT IMPLEMENT THIS METHOD.
This method is called to clear notifications for the SYS.Monitor Controller
_.Library.Integer ClearSensors | ( | ) |
USER DOES NOT IMPLEMENT THIS METHOD.
The controller calls this to initialize the SensorReadings array.
_.Library.Status GetSensors | ( | ) |
USER MUST IMPLEMENT THIS METHOD.
The System Monitor Controller calls this method to get sensor readings. It is called every 10 seconds by default.
Users may return readings for multiple sensors (but only one reading per sensor on each call). User calls SetSensor(sensorname, value[,type]) for every sensor reading. The sensors are kept in the property SensorReading(sensor)=value, and SensorType(sensor)=type. The controller picks up the sensors and their values after the return from GetSensors().
A return code of $$$OK indicates there were no errors. A return code of 0 indicates a failure.
_.Library.Status LogCon | ( | _.Library.String | Msg, |
_.Library.Integer | Severity | ||
) |
USER DOES NOT IMPLEMENT THIS METHOD.
User may call this method to post alerts directly to the messages.log file.
_.Library.Status LogMsg | ( | _.Library.String | msg | ) |
USER DOES NOT IMPLEMENT THIS METHOD.
User may call this method to log information to the SystemMonitor.log file in the mgr directory.
_.Library.Integer Notify | ( | _.Library.String | Sensor, |
_.Library.Integer | Severity, | ||
_.Library.String | Msg | ||
) |
USER DOES NOT IMPLEMENT THIS METHOD.
This method is called to post a notification
_.Library.Status OpenLog | ( | ) |
USER DOES NOT IMPLEMENT THIS METHOD.
_.Library.Integer SetSensor | ( | _.Library.String | Sensor, |
_.Library.String | Value, | ||
_.Library.String | Qualifier | ||
) |
USER DOES NOT IMPLEMENT THIS METHOD.
The user must call this method to set a sensor reading. Readings are picked up by the controller after GetSensors() returns.
Reimplemented in Abstract.
_.Library.Status Start | ( | ) |
Notifications |
State |
Runtime state.