CARMA C++
|
The observertools subsystem is comprised of the project database manager, which stores all relevant meta data used to plan, carry out observations of, and track the progress of projects as they are observed by the array. More...
Classes | |
struct | Calibrator |
Calibrator data. More... | |
struct | Correlator |
Correlator setup. More... | |
struct | Investigator |
Investigator data. More... | |
struct | ItemValue |
Item name and its value. More... | |
struct | Obsblock |
Obsblock data. More... | |
struct | Project |
Project data. More... | |
exception | ProjectDatabaseException |
An exception for an error in the database Usage example: More... | |
interface | ProjectDatabaseManager |
The interface to the CARMA Project Database Manager. More... | |
struct | ProjectId |
Structure containing a project obsblock, subobsblock strings and trial number. More... | |
struct | Source |
Source data structure. More... | |
struct | SubObsblock |
Sub-obsblock data. More... | |
struct | Target |
Target Molecule Data. More... | |
struct | Trial |
Trial data. More... | |
struct | Window |
Correlator Spectral Window Data. More... | |
Typedefs | |
typedef sequence< Calibrator > | CalibratorSequence |
Sequence of calibrators. More... | |
typedef sequence< Correlator > | CorrelatorSequence |
Sequence of Correalator setups. More... | |
typedef sequence< double > | doubleSequence |
Sequence of doubles. More... | |
typedef std::map< int, std::string > | EnumStringMap |
typedef sequence< Investigator > | InvestigatorSequence |
Sequence of investigators. More... | |
typedef sequence< ItemValue > | ItemValueSequence |
Sequence of an Item name and value pairs. More... | |
typedef sequence< Obsblock > | ObsblockSequence |
Sequence of obsblocks. More... | |
typedef boost::shared_ptr < PDB_Monitor > | PDB_Monitor_Ptr |
typedef sequence< Project > | ProjectSequence |
Sequence of projects. More... | |
typedef sequence< short > | shortSequence |
Sequence of shorts. More... | |
typedef sequence< Source > | SourceSequence |
Sequence of sources. More... | |
typedef std::map< std::string, int > | StringEnumMap |
typedef sequence< string > | StringSequence |
Sequence of strings. More... | |
typedef sequence< SubObsblock > | SubObsblockSequence |
Sequence of subobsblocks. More... | |
typedef sequence< Target > | TargetSequence |
Sequence of targets. More... | |
typedef sequence< Trial > | TrialSequence |
Sequence of trials. More... | |
typedef sequence< Window > | WindowSequence |
Sequence of windows. More... | |
Functions | |
void | addDatabaseIndexes (const PDB_DB_Params &db) |
unsigned int | checkEntireDatabase (const PDB_DB_Params &db) |
void | checkObsblockObject (const mongo::BSONObj &obj) |
void | checkProjectObject (const mongo::BSONObj &obj) |
void | checkScriptObject (const mongo::BSONObj &obj) |
void | checkSubobsblockObject (const mongo::BSONObj &obj) |
void | checkTrialObject (const mongo::BSONObj &obj) |
std::vector< Obsblock > | convertBSONObsblocks (const std::vector< mongo::BSONObj > &objects) |
std::vector< Project > | convertBSONProjects (const std::vector< mongo::BSONObj > &objects) |
std::vector< SubObsblock > | convertBSONSubObsblocks (const std::vector< mongo::BSONObj > &objects) |
std::vector< Trial > | convertBSONTrials (const std::vector< mongo::BSONObj > &objects) |
std::vector< mongo::BSONObj > | convertCORBAObsblocks (const std::vector< Obsblock > &objects) |
std::vector< mongo::BSONObj > | convertCORBAProjects (const std::vector< Project > &objects) |
std::vector< mongo::BSONObj > | convertCORBASubObsblocks (const std::vector< SubObsblock > &objects) |
std::vector< mongo::BSONObj > | convertCORBATrials (const std::vector< Trial > &objects) |
float | convertLetterGradeToNumeric (const std::string &letter) |
Convert a string grade (A+, A, A-, B+, etc.) to a numeric grade (0-100) More... | |
std::string | convertNumericGradeToLetter (const float grade) |
Convert a numeric grade (0-100) to a string grade (A+, A, A-, B+, etc.) More... | |
std::string | convertXmlToJson (const std::string &xmlContents) |
void | convertXmlToJson (const std::string &xmlContents, const bool pretty, PDB_JSON_Results &results) |
double | decConvert (const std::string &dec) |
bool | documentExists (const DBClientConnectionPtr conn, const std::string &collection, const mongo::BSONObj &query) |
std::string | editStatusToString (const EditStatus action) |
std::string | enumToString (const int value, const EnumStringMap &m) |
std::string | enumToString (const int value, const StringEnumMap &m) |
mongo::BSONObj | generateQueryFromBSONObject (const mongo::BSONObj &obj) |
std::vector< std::string > | getArrayConfigurationVec () |
std::vector< std::string > | getEnumNames (const StringEnumMap &m) |
std::vector< std::string > | getImgVsSnrVec () |
std::string | getObjectName (const mongo::BSONObj &obj) |
StringEnumMap | getObsCategoryMap () |
StringEnumMap | getObsLikelihoodMap () |
StringEnumMap | getObsTypeMap () |
StringEnumMap | getProjectStatusMap () |
std::vector< std::string > | getReceiverBandVec () |
EnumStringMap | getReverseMap (const StringEnumMap &m) |
bool | identifierIsNone (const std::string &identifier) |
bool | identifierIsNoneOrEmpty (const std::string &identifier) |
void | initializeDatabaseClientDriver () |
void | itemValueError (const std::string &msg, const ItemValue &iv) |
std::string | itemValueSequenceToString (const ItemValueSequence &seq) |
std::string | itemValueToString (const ItemValue &iv) |
std::string | itemValueVectorToString (const std::vector< ItemValue > &vec) |
std::string | jsonPrettyPrint (const std::string &json) |
ItemValue | makeItemValue (const std::string &n, const std::string &v) |
std::vector< Project > | mergeCORBAObjects (const CORBA_Object_Merge &merge) |
ProjectId | obsblockIdToProjectId (const std::string &obsblockId) |
std::string | projectIdToObsblockId (const ProjectId &pid) |
double | raConvert (const std::string &ra) |
std::string | readFile (const std::string &filename) |
void | removeFromDatabase (const DBClientConnectionPtr conn, const std::string &collection, const mongo::Query &query) |
CORBA_Object_Merge | splitCORBAObjects (const std::vector< Project > &projects) |
void | writeToDatabase (const DBClientConnectionPtr conn, const std::string &collection, const mongo::Query &query, const mongo::BSONObj &obj) |
Variables | |
const string | PROJECT_DATABASE_MANAGER_NAME |
The observertools subsystem is comprised of the project database manager, which stores all relevant meta data used to plan, carry out observations of, and track the progress of projects as they are observed by the array.
The only class with publicly accessible interfaces is the ProjectDatabaseManager class. It contains methods to query the database, edit the projects in the database, and add and retrieve observing scripts.
typedef sequence<Calibrator> carma::observertools::CalibratorSequence |
Sequence of calibrators.
Definition at line 167 of file ProjectDatabaseManager.idl.
typedef sequence<Correlator> carma::observertools::CorrelatorSequence |
Sequence of Correalator setups.
Definition at line 213 of file ProjectDatabaseManager.idl.
typedef sequence<double> carma::observertools::doubleSequence |
Sequence of doubles.
Definition at line 128 of file ProjectDatabaseManager.idl.
typedef sequence<Investigator> carma::observertools::InvestigatorSequence |
Sequence of investigators.
Definition at line 182 of file ProjectDatabaseManager.idl.
typedef sequence<ItemValue> carma::observertools::ItemValueSequence |
Sequence of an Item name and value pairs.
Definition at line 26 of file ItemValue.idl.
typedef sequence<Obsblock> carma::observertools::ObsblockSequence |
Sequence of obsblocks.
Definition at line 335 of file ProjectDatabaseManager.idl.
typedef sequence<Project> carma::observertools::ProjectSequence |
Sequence of projects.
Definition at line 363 of file ProjectDatabaseManager.idl.
typedef sequence<short> carma::observertools::shortSequence |
Sequence of shorts.
Definition at line 123 of file ProjectDatabaseManager.idl.
typedef sequence<Source> carma::observertools::SourceSequence |
Sequence of sources.
Definition at line 149 of file ProjectDatabaseManager.idl.
typedef sequence<string> carma::observertools::StringSequence |
Sequence of strings.
Definition at line 41 of file ProjectDatabaseManager.idl.
typedef sequence<SubObsblock> carma::observertools::SubObsblockSequence |
Sequence of subobsblocks.
Definition at line 300 of file ProjectDatabaseManager.idl.
typedef sequence<Target> carma::observertools::TargetSequence |
Sequence of targets.
Definition at line 226 of file ProjectDatabaseManager.idl.
typedef sequence<Trial> carma::observertools::TrialSequence |
Sequence of trials.
Definition at line 279 of file ProjectDatabaseManager.idl.
typedef sequence<Window> carma::observertools::WindowSequence |
Sequence of windows.
Definition at line 199 of file ProjectDatabaseManager.idl.
Various enumeration constants.
Enum for editor
Definition at line 50 of file ProjectDatabaseManager.idl.
Enum for observation category.
Definition at line 73 of file ProjectDatabaseManager.idl.
Enum for observation likelihood.
Enumerator | |
---|---|
LIKELIHOOD_A |
highest likelihood |
LIKELIHOOD_B |
observations possible |
LIKELIHOOD_C |
observations not likely |
LIKELIHOOD_NONE |
unknown |
Definition at line 113 of file ProjectDatabaseManager.idl.
Enum for observation type.
Definition at line 94 of file ProjectDatabaseManager.idl.
Enum for project status.
Enumerator | |
---|---|
PSTATUS_COMPLETE |
Project/obsblock/trial is done. |
PSTATUS_INCOMPLETE |
Project/obsblock/trial still has observable time. |
PSTATUS_RUNNING |
trial has been run/is running |
Definition at line 63 of file ProjectDatabaseManager.idl.
float carma::observertools::convertLetterGradeToNumeric | ( | const std::string & | letter | ) |
Convert a string grade (A+, A, A-, B+, etc.) to a numeric grade (0-100)
letter | the input string grade |
std::string carma::observertools::convertNumericGradeToLetter | ( | const float | grade | ) |
Convert a numeric grade (0-100) to a string grade (A+, A, A-, B+, etc.)
grade | the input numeric grade |
UserException | if grade < 0 || grade > 100 |
ProjectId carma::observertools::obsblockIdToProjectId | ( | const std::string & | obsblockId | ) |
valid | obsblockId in form project.obsblock[.subobsblock].trial |
std::string carma::observertools::projectIdToObsblockId | ( | const ProjectId & | pid | ) |
const string carma::observertools::PROJECT_DATABASE_MANAGER_NAME |
Definition at line 20 of file ProjectDatabaseManager.idl.