CARMA C++
FaultHandle.h
Go to the documentation of this file.
1 #ifndef CARMA_CONTROL_FAULTHANDLE_H
2 #define CARMA_CONTROL_FAULTHANDLE_H
3 
10 
11 #include <string>
12 #include <vector>
13 
14 #include "carma/corba/corba.h"
16 #include "carma/monitor/ControlSubsystem.h"
17 #include "carma/fault/FaultControl.h"
18 
19 
20 namespace carma {
21 namespace control {
22 
23 
24 typedef RemoteObjHandleT< carma::fault::FaultControl > FaultControlRemoteObjHandle;
25 
26 
29  public:
35  FaultHandle( monitor::MonitorSystem & monitorSys,
36  monitor::ControlSubsystemBase::Reachable & reachable );
37 
38  virtual ~FaultHandle( );
39 
46  void disableAlarms( ::std::vector< ::std::string > mpNames );
47 
55  void restoreAlarms( ::std::vector< ::std::string > mpNames );
56 
61  void setAlarmEnable( int subarrayNo, bool on );
62 };
63 
64 
65 } // namespace carma::control
66 } // namespace carma
67 
68 
69 #endif
void disableAlarms(::std::vector< ::std::string > mpNames)
Disable fault system alarms for the given monitor points.
FaultHandle(monitor::MonitorSystem &monitorSys, monitor::ControlSubsystemBase::Reachable &reachable)
Constructor.
Manages fault system control DO connections.
Definition: FaultHandle.h:28
void restoreAlarms(::std::vector< ::std::string > mpNames)
Restore fault system alarms to their default enable states for the given monitor points.
Manages connection to remote DO.
void setAlarmEnable(int subarrayNo, bool on)
Set the alarm enable state for the given subarray.
Typed class for managing connections to DOs.
Monitor system base class.
Definition: MonitorSystem.h:81