Public Member Functions | |
CommandPublisher (RiveScript rivescript) | |
Protected Member Functions | |
String | getUserParam (String key) |
synchronized void | initialize () |
void | publish (String method) |
void | publish (String method, String uri) |
void | publish (Command msg) |
void | setUserParam (String key, String value) |
Protected Attributes | |
final Object | lockInstance = new Object() |
ConnectedNode | node |
Publisher< Command > | publisher |
volatile RosRiveScript | rivescript |
Definition at line 24 of file CommandPublisher.java.
com.rosalfred.core.ia.CommandPublisher.CommandPublisher | ( | RiveScript | rivescript | ) | [inline] |
Definition at line 32 of file CommandPublisher.java.
String com.rosalfred.core.ia.CommandPublisher.getUserParam | ( | String | key | ) | [inline, protected] |
Get user parameter from context.
key | Key identify |
Definition at line 98 of file CommandPublisher.java.
synchronized void com.rosalfred.core.ia.CommandPublisher.initialize | ( | ) | [inline, protected] |
Initialize base of Command, connect to node and start publisher.
rivescript | Instance of |
Reimplemented in script.media.xbmc.Xbmc.
Definition at line 41 of file CommandPublisher.java.
void com.rosalfred.core.ia.CommandPublisher.publish | ( | String | method | ) | [inline, protected] |
Make and publish a generic command.
method |
Definition at line 59 of file CommandPublisher.java.
void com.rosalfred.core.ia.CommandPublisher.publish | ( | String | method, |
String | uri | ||
) | [inline, protected] |
Make and publish a generic command.
method |
Definition at line 67 of file CommandPublisher.java.
void com.rosalfred.core.ia.CommandPublisher.publish | ( | Command | msg | ) | [inline, protected] |
void com.rosalfred.core.ia.CommandPublisher.setUserParam | ( | String | key, |
String | value | ||
) | [inline, protected] |
Set a user parameter to context.
key | |
value |
Definition at line 107 of file CommandPublisher.java.
final Object com.rosalfred.core.ia.CommandPublisher.lockInstance = new Object() [protected] |
Definition at line 26 of file CommandPublisher.java.
ConnectedNode com.rosalfred.core.ia.CommandPublisher.node [protected] |
Definition at line 28 of file CommandPublisher.java.
Publisher<Command> com.rosalfred.core.ia.CommandPublisher.publisher [protected] |
Definition at line 30 of file CommandPublisher.java.
volatile RosRiveScript com.rosalfred.core.ia.CommandPublisher.rivescript [protected] |
Definition at line 29 of file CommandPublisher.java.