CARMA C++
RemoteSensorTrippLite.h
Go to the documentation of this file.
1 // $Id: RemoteSensorTrippLite.h,v 1.3 2011/07/19 20:53:21 eml Exp $
2 
3 #ifndef SZA_UTIL_REMOTESENSORTRIPPLITE_H
4 #define SZA_UTIL_REMOTESENSORTRIPPLITE_H
5 
16 
17 namespace sza {
18  namespace util {
19 
20  class RemoteSensorTrippLite : public RemoteSensorCoProc {
21  public:
22 
26  RemoteSensorTrippLite(std::string host,
27  unsigned timeoutIntervalInSeconds=0);
28 
29  RemoteSensorTrippLite(std::string host,
30  SystemStatusSubsystemMutex* ms,
31  carma::monitor::MonitorPointBool& mpIsReachable,
35  unsigned timeoutIntervalInSeconds=0);
36 
37  RemoteSensorTrippLite(std::string host,
38  SystemStatusSubsystemMutex* ms,
39  carma::monitor::MonitorPointBool& mpHostIsReachable,
42  carma::monitor::MonitorPointEnum& mpPlaceStatus,
47  sza::util::Temperature& minTemp,
48  sza::util::Temperature& maxTemp,
49  unsigned timeoutIntervalInSeconds=0);
50 
54  virtual ~RemoteSensorTrippLite();
55 
56  void printTemps();
57 
58  Temperature lowTemp_;
59  Temperature highTemp_;
60 
61  protected:
62 
65 
66  // Compile the list of communication/responses needed for
67  // retrieving the device status from the remote server
68 
69  void compileGetDeviceStatusStateMachine();
70 
71  // Assemble the command string to be issued
72 
73  virtual std::string getCommandString();
74 
75  // Define what it means to parse the return message
76 
77  virtual void processDeviceStatus();
78 
79  void writeMonitorPoints(bool isReachable);
80  }; // End class RemoteSensorTrippLite
81 
82  } // End namespace util
83 } // End namespace sza
84 
85 
86 
87 #endif // End #ifndef SZA_UTIL_REMOTESENSORTRIPPLITE_H
Abstract base class for any enumerated constants, like state machines.
Tagged: Mon Jul 19 14:47:35 PDT 2004.
Absolute time value monitor point.