-
Notifications
You must be signed in to change notification settings - Fork 2
/
Ex10_BlackboardStateless.java
30 lines (26 loc) · 1.11 KB
/
Ex10_BlackboardStateless.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package edu.cmu.inmind.multiuser.sara.examples;
import edu.cmu.inmind.multiuser.common.SaraCons;
import edu.cmu.inmind.multiuser.controller.plugin.PluginModule;
import edu.cmu.inmind.multiuser.sara.component.NLUComponent;
import edu.cmu.inmind.multiuser.sara.orchestrator.SaraOrchestratorEx10;
/**
* Created by oscarr on 4/10/17.
*
* By default, the Blackboard keeps a state of all messages that are posted by components,
* however, you can tell the blackboard to not store the state, just notify the subscribers.
* Note that you won't be able to get any object from the Blackboard, of course.
* For this example do not run DialogueSystem, you won't need it.
*/
public class Ex10_BlackboardStateless extends Main {
public static void main(String args[]) throws Throwable{
new Ex10_BlackboardStateless().execute();
}
@Override
protected PluginModule[] createModules() {
return new PluginModule[]{
new PluginModule.Builder(SaraOrchestratorEx10.class)
.addPlugin(NLUComponent.class, SaraCons.ID_NLU)
.build()
};
}
}