public class DialogCommand extends InfoMessage implements IWorldEvent, IWorldChangeEvent
| Modifier and Type | Field and Description |
|---|---|
protected String |
Command
Type of the command.
|
protected String |
Data
Data carried in the message, usually in form "param1=value1¶m2=value2&...¶mN=valueN", equals, ampersands and backslashes are escaped by backslash.
|
protected String |
Id
Id of the dialog for with which is this command related to.
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected long |
SimTime |
protected String |
SourceId
Id of the component from where the command originates.
|
| Constructor and Description |
|---|
DialogCommand()
Parameter-less contructor for the message.
|
DialogCommand(DialogCommand original)
Cloning constructor from the full message.
|
DialogCommand(String Id,
String SourceId,
String Command,
String Data)
Creates new instance of the message DialogCommand.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCommand()
Type of the command.
|
String |
getData()
Data carried in the message, usually in form "param1=value1¶m2=value2&...¶mN=valueN", equals, ampersands and backslashes are escaped by backslash.
|
String |
getId()
Id of the dialog for with which is this command related to.
|
long |
getSimTime()
Simulation time in MILLI SECONDS !!!
|
String |
getSourceId()
Id of the component from where the command originates.
|
protected void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.
|
String |
toHtmlString() |
String |
toJsonLiteral() |
String |
toString() |
public static final String PROTOTYPE
protected long SimTime
protected String Id
protected String SourceId
protected String Command
protected String Data
public DialogCommand()
public DialogCommand(String Id, String SourceId, String Command, String Data)
Id - Id of the dialog for with which is this command related to.SourceId - Id of the component from where the command originates.Command - Type of the command. SUBMIT and CANCEL carry the data.Data - Data carried in the message, usually in form "param1=value1¶m2=value2&...¶mN=valueN", equals, ampersands and backslashes are escaped by backslash.public DialogCommand(DialogCommand original)
original - public long getSimTime()
getSimTime in interface IWorldChangeEventgetSimTime in interface IWorldEventprotected void setSimTime(long SimTime)
public String getId()
public String getSourceId()
public String getCommand()
public String getData()
public String toString()
toString in class InfoMessagepublic String toHtmlString()
public String toJsonLiteral()
toJsonLiteral in class InfoMessageCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.