public class KVConnectOK extends AbstractMessage implements Control
| Constructor and Description |
|---|
KVConnectOK(java.io.InputStream in)
A KVConnectOK message that populates its data from a stream.
|
KVConnectOK(int viewerID,
int requestID,
java.util.Collection<? extends Entity> allEntities,
Config config)
A populated KVConnectOK message.
|
| Modifier and Type | Method and Description |
|---|---|
Config |
getConfig()
Get the Config.
|
java.util.Collection<Entity> |
getEntities()
Get the entity list.
|
int |
getRequestID()
Get the request ID.
|
int |
getViewerID()
Get the viewer ID.
|
addMessageComponent, getComponents, getURN, read, toString, writepublic KVConnectOK(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 KVConnectOK(int viewerID,
int requestID,
java.util.Collection<? extends Entity> allEntities,
Config config)
viewerID - The viewer ID.requestID - The request ID.allEntities - All Entities in the world.config - The Config that the agent knows about.public int getViewerID()
public int getRequestID()
public java.util.Collection<Entity> getEntities()
public Config getConfig()