Public Member Functions | |
GraphName | getDefaultNodeName () |
void | logD (Object message) |
void | logE (Object message) |
void | logE (Exception message) |
void | logI (Object message) |
void | onNewMessage (Command command) |
IaConfig | onReconfigure (IaConfig config, int level) |
void | onShutdown (Node node) |
void | onStart (ConnectedNode connectedNode) |
void | persistBotState () |
void | reloadBotState () |
Static Public Attributes | |
static String | botname = "Alfred" |
static final String | VAR_CONTEXT_WHERE = "context-where" |
Protected Member Functions | |
String | getFolderPersist () |
String | getPath () |
RosRiveScript | getRiveScript () |
void | initTopics () |
void | loadHandlers () |
Protected Attributes | |
RosRiveScript | bot |
ConnectedNode | connectedNode |
String | path |
String | prefix |
Publisher< Command > | publisherSay |
Server< IaConfig > | reconfigServer |
Subscriber< Command > | subscriberListen |
Private Member Functions | |
void | initBot () |
void | loadParameters () |
Command | makeSay () |
void | reloadBot () |
void | sayGoodbye () |
void | sayReload () |
void | sayWelcome () |
Static Private Attributes | |
static final String | PERSITE_FILE = "saveContext.xml" |
static final String | PUB_STATE = "robotsay" |
static final String | SUB_CMD = "speech" |
Definition at line 46 of file IaNode.java.
GraphName com.rosalfred.core.ia.IaNode.getDefaultNodeName | ( | ) | [inline] |
Definition at line 66 of file IaNode.java.
String com.rosalfred.core.ia.IaNode.getFolderPersist | ( | ) | [inline, protected] |
Definition at line 162 of file IaNode.java.
String com.rosalfred.core.ia.IaNode.getPath | ( | ) | [inline, protected] |
Definition at line 85 of file IaNode.java.
RosRiveScript com.rosalfred.core.ia.IaNode.getRiveScript | ( | ) | [inline, protected] |
Definition at line 100 of file IaNode.java.
void com.rosalfred.core.ia.IaNode.initBot | ( | ) | [inline, private] |
Definition at line 90 of file IaNode.java.
void com.rosalfred.core.ia.IaNode.initTopics | ( | ) | [inline, protected] |
Definition at line 197 of file IaNode.java.
void com.rosalfred.core.ia.IaNode.loadHandlers | ( | ) | [inline, protected] |
Definition at line 104 of file IaNode.java.
void com.rosalfred.core.ia.IaNode.loadParameters | ( | ) | [inline, private] |
Load parameters of node
Definition at line 238 of file IaNode.java.
void com.rosalfred.core.ia.IaNode.logD | ( | Object | message | ) | [inline] |
Log a message with debug log level.
message | this message |
Definition at line 373 of file IaNode.java.
void com.rosalfred.core.ia.IaNode.logE | ( | Object | message | ) | [inline] |
Log a message with error log level.
message | this message |
Definition at line 391 of file IaNode.java.
void com.rosalfred.core.ia.IaNode.logE | ( | Exception | message | ) | [inline] |
Log a message with error log level.
message | this message |
Definition at line 400 of file IaNode.java.
void com.rosalfred.core.ia.IaNode.logI | ( | Object | message | ) | [inline] |
Log a message with info log level.
message | this message |
Definition at line 382 of file IaNode.java.
Command com.rosalfred.core.ia.IaNode.makeSay | ( | ) | [inline, private] |
Definition at line 210 of file IaNode.java.
void com.rosalfred.core.ia.IaNode.onNewMessage | ( | Command | command | ) | [inline] |
On new message is throw.
Definition at line 262 of file IaNode.java.
IaConfig com.rosalfred.core.ia.IaNode.onReconfigure | ( | IaConfig | config, |
int | level | ||
) | [inline] |
Definition at line 358 of file IaNode.java.
void com.rosalfred.core.ia.IaNode.onShutdown | ( | Node | node | ) | [inline] |
On node shutdown is throw.
Definition at line 345 of file IaNode.java.
void com.rosalfred.core.ia.IaNode.onStart | ( | ConnectedNode | connectedNode | ) | [inline] |
Definition at line 71 of file IaNode.java.
void com.rosalfred.core.ia.IaNode.persistBotState | ( | ) | [inline] |
Persist current context.
FileNotFoundException |
Definition at line 135 of file IaNode.java.
void com.rosalfred.core.ia.IaNode.reloadBot | ( | ) | [inline, private] |
Definition at line 114 of file IaNode.java.
void com.rosalfred.core.ia.IaNode.reloadBotState | ( | ) | [inline] |
Load from last persist context.
Definition at line 173 of file IaNode.java.
void com.rosalfred.core.ia.IaNode.sayGoodbye | ( | ) | [inline, private] |
Definition at line 223 of file IaNode.java.
void com.rosalfred.core.ia.IaNode.sayReload | ( | ) | [inline, private] |
Definition at line 217 of file IaNode.java.
void com.rosalfred.core.ia.IaNode.sayWelcome | ( | ) | [inline, private] |
Definition at line 229 of file IaNode.java.
RosRiveScript com.rosalfred.core.ia.IaNode.bot [protected] |
Definition at line 63 of file IaNode.java.
String com.rosalfred.core.ia.IaNode.botname = "Alfred" [static] |
Definition at line 53 of file IaNode.java.
ConnectedNode com.rosalfred.core.ia.IaNode.connectedNode [protected] |
Definition at line 58 of file IaNode.java.
String com.rosalfred.core.ia.IaNode.path [protected] |
Definition at line 56 of file IaNode.java.
final String com.rosalfred.core.ia.IaNode.PERSITE_FILE = "saveContext.xml" [static, private] |
Definition at line 51 of file IaNode.java.
String com.rosalfred.core.ia.IaNode.prefix [protected] |
Definition at line 55 of file IaNode.java.
final String com.rosalfred.core.ia.IaNode.PUB_STATE = "robotsay" [static, private] |
Definition at line 50 of file IaNode.java.
Publisher<Command> com.rosalfred.core.ia.IaNode.publisherSay [protected] |
Definition at line 60 of file IaNode.java.
Server<IaConfig> com.rosalfred.core.ia.IaNode.reconfigServer [protected] |
Definition at line 59 of file IaNode.java.
final String com.rosalfred.core.ia.IaNode.SUB_CMD = "speech" [static, private] |
Definition at line 49 of file IaNode.java.
Subscriber<Command> com.rosalfred.core.ia.IaNode.subscriberListen [protected] |
Definition at line 61 of file IaNode.java.
final String com.rosalfred.core.ia.IaNode.VAR_CONTEXT_WHERE = "context-where" [static] |
Definition at line 48 of file IaNode.java.