VAT  3.0
Video Analysis Tool
IncrementalEventLearning.h
1 #ifndef INCREMENTALEVENTLEARNING_H
2 #define INCREMENTALEVENTLEARNING_H
3 
4 #include <QDomNode>
5 #include <map>
6 #include <deque>
7 #include <string>
8 #include <QFile>
9 
10 #include "LearningAttributesSpecification.h"
11 
12 #define MAX_LEN_BUFFER 512
13 
14 namespace miles {
15 
17  public:
18  static double minConditionalP;
19  Datapool *m_data;
20  QString m_learningContextsFile;
21  QString m_hierarchyStatsFile;
22  QFile m_statsFile;
23  bool m_activateStats;
24  int nValidContexts;
25  SpLearningAttributes availableAttributes;
26  std::map<int, SpLearningContext> validContexts;
27  std::map<unsigned long, SpLearningContextualisedObject> followedObjects;
28  std::map<unsigned long, bool> presentInThisFrame;
29  SpXMLTreeGenerator treeGenerator;
30  bool first;
33  void setContextualisedObjects(Datapool &datapool);
34  void run(double);
35  void init();
36  bool setParameters(QDomNode &config);
37  void setLearningContexts();
38 
39  bool invalidNumericNameForContext(std::string name, SpLearningContext context);
40  bool invalidSymbolicNameForContext(std::string name, SpLearningContext context);
41  bool invalidValueNameForContext(attribute_id att_id, std::string name);
42 
43  SpLearningStateConcept createNewNode(QDomNode& config, SpLearningContext context, long int &free_state_id);
44  SpHierarchyTree generateTree(QString filename, SpLearningContext context);
45 
46  QDomDocument *xmlConfig;
47  QDomElement rootConfig;
48 
49  };
50 
51  typedef QSharedPointer<IncrementalEventLearning> SpIncrementalEventLearning;
52 
53 } // end namespace miles
54 
55 #endif
Definition: IncrementalEventLearning.h:16
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39
Definition: HierarchyTree.cpp:12