Public Member Functions | Static Public Attributes | Package Attributes | Private Attributes
edu.nimbus.glass.ROSMonitorManager Class Reference
Inheritance diagram for edu.nimbus.glass.ROSMonitorManager:
Inheritance graph
[legend]

List of all members.

Public Member Functions

boolean check_display (String new_error)
void clearWarning ()
void onClose (int code, String reason)
void onOpen ()
void onTextMessage (String payload)
 ROSMonitorManager (ROSMonitorService master, WebSocketConnection conn)
void setWarning (String text)

Static Public Attributes

static final String WARN_TOPIC_NAME = "glass_warn"
static final String WARN_TOPIC_TYPE = "std_msgs/String"

Package Attributes

WebSocketConnection mConnection

Private Attributes

String _lastWarning
ROSMonitorService _master
Map< String, Long > message_times

Detailed Description

Class to handle data sent over the websocket connection.

Definition at line 37 of file ROSMonitorManager.java.


Constructor & Destructor Documentation

edu.nimbus.glass.ROSMonitorManager.ROSMonitorManager ( ROSMonitorService  master,
WebSocketConnection  conn 
) [inline]

Constructor

Parameters:
master: The background service that will control live card creation
connWebSocketConnection : connection to send and receive messages

Definition at line 58 of file ROSMonitorManager.java.


Member Function Documentation

boolean edu.nimbus.glass.ROSMonitorManager.check_display ( String  new_error) [inline]

This method checks a received message to see if it should be displayed based on time and what is currently being displayed on the screen.

Returns:

Definition at line 104 of file ROSMonitorManager.java.

Clear the stored warning so the next one will trigger a new live card

Definition at line 137 of file ROSMonitorManager.java.

void edu.nimbus.glass.ROSMonitorManager.onClose ( int  code,
String  reason 
) [inline]

Definition at line 129 of file ROSMonitorManager.java.

Definition at line 66 of file ROSMonitorManager.java.

void edu.nimbus.glass.ROSMonitorManager.onTextMessage ( String  payload) [inline]

Definition at line 82 of file ROSMonitorManager.java.

void edu.nimbus.glass.ROSMonitorManager.setWarning ( String  text) [inline]

Set the warning text

Parameters:
textString : Text to set to current warning.

Definition at line 145 of file ROSMonitorManager.java.


Member Data Documentation

Definition at line 42 of file ROSMonitorManager.java.

Definition at line 40 of file ROSMonitorManager.java.

WebSocketConnection edu.nimbus.glass.ROSMonitorManager.mConnection [package]

Definition at line 44 of file ROSMonitorManager.java.

Definition at line 46 of file ROSMonitorManager.java.

final String edu.nimbus.glass.ROSMonitorManager.WARN_TOPIC_NAME = "glass_warn" [static]

Topic on which warning messages will be published

Definition at line 49 of file ROSMonitorManager.java.

final String edu.nimbus.glass.ROSMonitorManager.WARN_TOPIC_TYPE = "std_msgs/String" [static]

Message type for warning messages

Definition at line 51 of file ROSMonitorManager.java.


The documentation for this class was generated from the following file:


ros_glass_tools
Author(s):
autogenerated on Thu Aug 27 2015 14:47:21