Public Member Functions | Protected Member Functions | Protected Attributes
com.rosalfred.core.ia.CommandPublisher Class Reference
Inheritance diagram for com.rosalfred.core.ia.CommandPublisher:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Author:
Mickael Gaillard <mick.gaillard@gmail.com>

Definition at line 24 of file CommandPublisher.java.


Constructor & Destructor Documentation

Definition at line 32 of file CommandPublisher.java.


Member Function Documentation

String com.rosalfred.core.ia.CommandPublisher.getUserParam ( String  key) [inline, protected]

Get user parameter from context.

Parameters:
keyKey identify
Returns:

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.

Parameters:
rivescriptInstance 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.

Parameters:
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.

Parameters:
method

Definition at line 67 of file CommandPublisher.java.

void com.rosalfred.core.ia.CommandPublisher.publish ( Command  msg) [inline, protected]

Publish a generic command.

Parameters:
msg

Definition at line 82 of file CommandPublisher.java.

void com.rosalfred.core.ia.CommandPublisher.setUserParam ( String  key,
String  value 
) [inline, protected]

Set a user parameter to context.

Parameters:
key
value

Definition at line 107 of file CommandPublisher.java.


Member Data Documentation

final Object com.rosalfred.core.ia.CommandPublisher.lockInstance = new Object() [protected]

Definition at line 26 of file CommandPublisher.java.

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.

Definition at line 29 of file CommandPublisher.java.


The documentation for this class was generated from the following file:


alfred_bot
Author(s): Mickael Gaillard , Erwan Le Huitouze
autogenerated on Tue Jun 14 2016 01:34:50