System Catalog parser. More...
#include </home/user/DXC_svn/trunk/Src/APIs/cpp/DataTypes/SystemCatalog.hpp>
Public Member Functions | |
const std::string | getSystemName () const |
The name of the system. | |
const std::set< std::string > * | getComponentIDs () const |
The set of component IDs the system contains. | |
const std::set< std::string > * | getFaultModeIDs (const std::string &componentID) const |
The set of mode IDs of a given component. | |
const std::map< std::string, double > * | getSensorsAndCosts () const |
A map of sensors and their probing cost, if any. | |
bool | isComponentValid (const std::string &componentID) const |
Test the validity of a componentID. | |
bool | isFaultModeValid (const std::string &componentID, const std::string &modeID) const |
Given a valid component, test the validity of a mode ID. | |
Static Public Member Functions | |
static const SystemCatalog * | getInstance (const std::string &system) |
Get a system's catalog. |
System Catalog parser.
Provides a data structure for accessing information contained in a system's XML catalog.
const set< string > * SystemCatalog::getFaultModeIDs | ( | const std::string & | componentID | ) | const |
The set of mode IDs of a given component.
componentID | - component's ID |
static const SystemCatalog* Dxc::SystemCatalog::getInstance | ( | const std::string & | system | ) | [static] |
Get a system's catalog.
system | - the system's name |
System catalogs are searched for in $DXC_HOME/[SYSTEMCAT_DIR] (see DXC.cfg for SYSTEMCAT_DIR).
bool Dxc::SystemCatalog::isComponentValid | ( | const std::string & | componentID | ) | const |
Test the validity of a componentID.
componentID | - component's ID |
bool Dxc::SystemCatalog::isFaultModeValid | ( | const std::string & | componentID, | |
const std::string & | modeID | |||
) | const |
Given a valid component, test the validity of a mode ID.
componentID | - component ID | |
modeID | - mode ID |