#include <AlarmSystemInterface.h>
Inheritance diagram for acsalarm::AlarmSystemInterface:
Public Member Functions | |
AlarmSystemInterface () | |
virtual | ~AlarmSystemInterface () |
virtual void | setSourceName (std::string newSourceName) |
virtual std::string | getSourceName () |
virtual void | setHostName (std::string newHostName) |
virtual std::string | getHostName () |
virtual void | push (FaultState &state) |
virtual void | push (std::vector< FaultState > &states) |
virtual void | pushActiveList (std::vector< FaultState > &activeFaults) |
virtual void | close ()=0 |
Protected Member Functions | |
virtual bool | publishMessage (ASIMessage msg)=0 |
Protected Attributes | |
std::string | sourceName |
std::string | hostName |
acsalarm::ASIConfiguration | configuration |
Private Member Functions | |
void | commonPush (std::vector< FaultState > &states, bool backup) |
|
|
|
|
|
Cleanup. Must be implemented by concrete sub classes; may be called by destructor or explicitly by client; it's up to you how you wish the cleanup process to be initiated. Implemented in ACSAlarmSystemInterfaceProxy, and laserSource::CERNAlarmSystemInterfaceProxy.
|
|
Private method to push a collection of fault states, containing the logic which is common to both the push() and pushActiveList() methods.
|
|
Get the host name.
|
|
Get the source name.
|
|
Sends the message to the alarm server; concrete classes must override this and use the communication mechanism of their choice. For an example of a concrete class, see ACSLaser/laser-source-cpp/CERNAlarmSystemInterfaceProxy. Implemented in ACSAlarmSystemInterfaceProxy, and laserSource::CERNAlarmSystemInterfaceProxy.
|
|
Push a collection of fault states.
|
|
Push a fault state.
Reimplemented in ACSAlarmSystemInterfaceProxy.
|
|
Push the set of active fault states.
|
|
Set the host name.
|
|
Set the source name.
|
|
|
|
|
|
|