$search
00001 /* 00002 * Assignment.h 00003 * 00004 * Created on: Jul 28, 2011 00005 * Author: sdries 00006 */ 00007 00008 #ifndef ASSIGNMENTMATRIX_H_ 00009 #define ASSIGNMENTMATRIX_H_ 00010 00011 #include <vector> 00012 #include <map> 00013 00014 namespace mhf { 00015 00016 class Evidence; 00017 class SemanticObject; 00018 class Assignment; 00019 00020 class AssignmentMatrix { 00021 00022 public: 00023 00024 AssignmentMatrix(); 00025 00026 virtual ~AssignmentMatrix(); 00027 00028 void addPotentialAssignment(const Assignment& ass); 00029 00030 const Assignment& getAssignment(unsigned int i_ev, int i_assignment); 00031 00032 unsigned int getNumAssignments(unsigned int i_ev); 00033 00034 void sortAssignments(); 00035 00036 unsigned int getNumMeasurements() const; 00037 00038 protected: 00039 00040 std::map<const Evidence*, unsigned int> evidence_to_index_; 00041 00042 std::vector< std::vector<const Assignment*> > assignments_; 00043 00044 }; 00045 00046 } 00047 00048 #endif /* ASSIGNMENTMATRIX_H_ */