public class AKSpeak extends AbstractCommand
| Constructor and Description |
|---|
AKSpeak(EntityID agent,
int time,
int channel,
byte[] data)
Construct a speak command.
|
AKSpeak(java.io.InputStream in)
An AKSpeak message that populates its data from a stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getChannel()
Get the channel that was used.
|
byte[] |
getContent()
Get the content of the message.
|
getAgentID, getTime, setAgentID, setTimeaddMessageComponent, getComponents, getURN, read, toString, writepublic AKSpeak(java.io.InputStream in)
throws java.io.IOException
in - The InputStream to read.java.io.IOException - If there is a problem reading the stream.public AKSpeak(EntityID agent, int time, int channel, byte[] data)
agent - The ID of the agent issuing the command.time - The time the command was issued.channel - The ID of the channel to speak on.data - The content of the message.