Now, let's create the class that handles the blackboard and the main logic behind our metaphor:
- First, let's define the Blackboard class, as shown in the following code:
using System.Collections.Generic;public class Blackboard{ public List<BlackboardDatum> entries; public List<BlackboardAction> pastActions; public List<BlackboardExpert> experts;}
- Next, let's implement its constructor, as follows:
public Blackboard(){ entries = new List<BlackboardDatum>(); pastActions = new List<BlackboardAction>(); experts = new List<BlackboardExpert>();}
- Then, we can define the main class for each iteration, as shown in the following code:
public void RunIteration(){ // next steps}
- Next, we're going to add the required variables, as ...