Skip to content

v0.2.48..v0.2.49 changeset ReleaseTestFitnessFunction.h

Garret Voltz edited this page Oct 2, 2019 · 1 revision
diff --git a/hoot-core-test/src/test/cpp/hoot/core/conflate/optimization/ReleaseTestFitnessFunction.h b/hoot-core-test/src/test/cpp/hoot/core/conflate/optimization/ReleaseTestFitnessFunction.h
new file mode 100644
index 0000000..f121e8e
--- /dev/null
+++ b/hoot-core-test/src/test/cpp/hoot/core/conflate/optimization/ReleaseTestFitnessFunction.h
@@ -0,0 +1,57 @@
+/*
+ * This file is part of Hootenanny.
+ *
+ * Hootenanny is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * --------------------------------------------------------------------
+ *
+ * The following copyright notices are generated automatically. If you
+ * have a new notice to add, please use the format:
+ * " * @copyright Copyright ..."
+ * This will properly maintain the copyright information. DigitalGlobe
+ * copyrights will be updated automatically.
+ *
+ * @copyright Copyright (C) 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ */
+
+#ifndef __RELEASETESTFITNESSFUNCTION_H__
+#define __RELEASETESTFITNESSFUNCTION_H__
+
+// Hoot
+#include <hoot/core/conflate/optimization/AbstractRegressionTestFitnessFunction.h>
+
+namespace hoot
+{
+
+/**
+ * Fitness function which optimizes configuration settings against Hootenanny regression release
+ * test data.
+ */
+class ReleaseTestFitnessFunction : public AbstractRegressionTestFitnessFunction
+{
+
+public:
+
+  /**
+   * Constructor
+   *
+   * @param dir base dir for the tests
+   * @param configFile custom config file to pass to the associated test suite
+   */
+  ReleaseTestFitnessFunction(QString dir, QString configFile);
+};
+
+}
+
+#endif // __RELEASETESTFITNESSFUNCTION_H__
Clone this wiki locally