-
Notifications
You must be signed in to change notification settings - Fork 2
/
Ex02_ExtractMessage.java
36 lines (32 loc) · 1.25 KB
/
Ex02_ExtractMessage.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
31
32
33
34
35
36
package edu.cmu.inmind.multiuser.sara.examples;
import edu.cmu.inmind.multiuser.common.SaraCons;
import edu.cmu.inmind.multiuser.controller.common.Utils;
import edu.cmu.inmind.multiuser.controller.plugin.PluginModule;
import edu.cmu.inmind.multiuser.sara.orchestrator.SaraOrchestratorEx02;
/**
* Created by oscarr on 4/10/17.
*
* Description: this is a simple scenario that illustrates:
* 1) how to use your own implementation of a Message Logger,
* 2) how to extract messages coming from the client
* 3) how to respond to the client
*/
public class Ex02_ExtractMessage extends Main {
/**
* This method controls the whole app. If shutdown is entered, it will completely
* stop the system.
*/
public static void main(String args[]) throws Throwable{
new Ex02_ExtractMessage().execute();
}
@Override
protected PluginModule[] createModules() {
// let's create all necessary components for SARA:
return new PluginModule[]{
new PluginModule.Builder(SaraOrchestratorEx02.class)
// you can either load classes from the config.properties file:
.addPlugin(Utils.getProperty("NLUComponent"), SaraCons.ID_NLU)
.build()
};
}
}