public class AKSubscribe extends AbstractCommand
Constructor and Description |
---|
AKSubscribe(EntityID agent,
int time,
int... channels)
Construct a subscribe command.
|
AKSubscribe(java.io.InputStream in)
An AKSubscribe message that populates its data from a stream.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Integer> |
getChannels()
Get the channels that have been requested.
|
getAgentID, getTime, setAgentID, setTime
addMessageComponent, getComponents, getURN, read, toString, write
public AKSubscribe(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 AKSubscribe(EntityID agent, int time, int... channels)
agent
- The ID of the agent issuing the command.time
- The time the command was issued.channels
- The IDs of the channels to speak on.