From 6c4352ff1d119329bacf39f7de6644f50e201ad5 Mon Sep 17 00:00:00 2001
From: Laurianne Charrier <laurianne.charrier@hoomano.com>
Date: Mon, 8 Apr 2019 16:00:29 +0200
Subject: [PATCH] Add Amelie comments

---
 src/MemoryRanked/RosMemoryRanked.js | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/src/MemoryRanked/RosMemoryRanked.js b/src/MemoryRanked/RosMemoryRanked.js
index 31afc2a..f95fd88 100644
--- a/src/MemoryRanked/RosMemoryRanked.js
+++ b/src/MemoryRanked/RosMemoryRanked.js
@@ -34,6 +34,24 @@ class RosMemoryRanked extends Component {
     }
 
     render () {
+        const config = this.props.node.getConfig()
+
+        if (config && 'displayMode' in config) {
+            if (config.displayMode === "readme") {
+                return (
+                <div>
+                  <h1>Display the sequences of the interactions learnt by the agent</h1>
+                  <p>
+                  Each time the agent performs a <b>sequence of interactions</b> in the environment, it records the corresponding <b>valence</b> and stores it in the memory. Each record is called an <b>occurence</b> of the sequence.
+                  </p>
+                </div>);
+            } else if (config.displayMode === "settings") {
+                return <div>
+                    <p>config panel</p>
+                </div>;
+            }
+        }
+
         return <MemoryRanked data={this.state.data} xLabel={this.state.xLabel} yLabel={this.state.yLabel} {...this.props}/>
     }
 }
-- 
GitLab