aboutsummaryrefslogtreecommitdiff
path: root/oop2w5/BlackboardStrategy.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-12-11 21:37:15 +0100
committerlonkaars <loek@pipeframe.xyz>2022-12-11 21:37:15 +0100
commit1ed8db0234f9a273e07b7350e53ad230c5b62ce6 (patch)
treef35f30bb70f70a24f0c443e1768f80c947f947b1 /oop2w5/BlackboardStrategy.h
parent93def2de2991282bac9e320b209657f76cb31177 (diff)
week 5 klaar
Diffstat (limited to 'oop2w5/BlackboardStrategy.h')
-rw-r--r--oop2w5/BlackboardStrategy.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/oop2w5/BlackboardStrategy.h b/oop2w5/BlackboardStrategy.h
new file mode 100644
index 0000000..9ab391a
--- /dev/null
+++ b/oop2w5/BlackboardStrategy.h
@@ -0,0 +1,47 @@
+#pragma once
+
+/*
+ * DO NOT ADAPT THIS FILE!!!
+ */
+
+class BlackboardStrategy
+{
+public:
+ BlackboardStrategy();
+ virtual ~BlackboardStrategy();
+
+public:
+ virtual unsigned fitnessStrategy1() const;
+ virtual unsigned fitnessStrategy2() const;
+ virtual unsigned fitnessStrategy3() const;
+ virtual unsigned fitnessStrategy4() const;
+ virtual unsigned fitnessStrategy5() const;
+ virtual unsigned fitnessStrategy6() const;
+
+public:
+ virtual unsigned resultStrategy1() const;
+ virtual unsigned resultStrategy2() const;
+ virtual unsigned resultStrategy3() const;
+ virtual unsigned resultStrategy4() const;
+ virtual unsigned resultStrategy5() const;
+ virtual unsigned resultStrategy6() const;
+
+public:
+ virtual void initialize();
+ virtual void setBestStrategy( unsigned );
+ virtual void setBestResult( unsigned );
+
+public:
+ virtual unsigned getBestStrategy() const;
+ virtual unsigned getBestResult() const;
+
+private:
+ virtual unsigned fitnessStrategy( unsigned ) const;
+ virtual unsigned resultStrategy( unsigned ) const;
+
+ virtual unsigned value( unsigned, unsigned ) const;
+
+private:
+ unsigned m_uBestStrategy; // contains the best strategy, i.e. value 1 to 6
+ unsigned m_uBestResult; // contains the best (i.e. highest) value of the result
+};