1 #ifndef DECISIONTREEMANAGER_H 2 #define DECISIONTREEMANAGER_H 48 int readFromDirectory(std::string path);
50 std::shared_ptr<dtree::DecisionTree> tree (TreeType type);
51 bool hasTree(TreeType type);
63 static std::string treeTypeCode(TreeType type);
64 static TreeType treeTypeFromCode (std::string code);
67 bool readFile(std::string filename);
68 void readScenarioFileIfAvailable(std::string path, std::string scenarioname);
71 std::vector<std::shared_ptr<dtree::DecisionTree> > mTrees;
72 std::vector<std::set<dtree::Variable> > mVariableDictionary;
76 static const char *
const mCodes[];
81 #endif // DECISIONTREEMANAGER_H static DecisionTreeManager * manager()
returns the instance of the singleton. Uses lazy initialization to proper initialize the instance.
Definition: decisiontreemanager.h:57
Definition: decisiontreemanager.h:13
Definition: decisiontreemanager.h:41
Definition: decisiontreemanager.h:42
Definition: comstructs.h:32
Variable
Definition: variables.h:10
Definition: commonstateevaluators.h:8
TreeType
An enumerated type to identify which tree to refer. They are internally used as index to various cont...
Definition: decisiontreemanager.h:38
A class that implements a Singleton for managing the Decision Trees for vessels.
Definition: decisiontreemanager.h:25
Definition: decisiontreemanager.h:43
displace::commons::Scenario scenario
Definition: main.cpp:247
#define COMMONSSHARED_EXPORT
Definition: commons_global.h:23