diff --git a/src/MemoryRanked/RosMemoryRanked.js b/src/MemoryRanked/RosMemoryRanked.js index 31afc2a4deddc0ce6f8ad164f8cdaf037835756b..f95fd883ee6e408775477eda60b749db9eed3e05 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}/> } }