public class KSConnectOK extends AbstractMessage implements Control
Constructor and Description |
---|
KSConnectOK(java.io.InputStream in)
A KSConnectOK message that populates its data from a stream.
|
KSConnectOK(int simulatorID,
int requestID,
java.util.Collection<? extends Entity> allEntities,
Config config)
A populated KSConnectOK 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 |
getSimulatorID()
Get the simulator ID for this message.
|
addMessageComponent, getComponents, getURN, read, toString, write
public KSConnectOK(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 KSConnectOK(int simulatorID, int requestID, java.util.Collection<? extends Entity> allEntities, Config config)
simulatorID
- The ID of the simulator that has successfully connected.requestID
- The request ID.allEntities
- All Entities in the world.config
- The Config that the simulator knows about.public int getSimulatorID()
public int getRequestID()
public java.util.Collection<Entity> getEntities()
public Config getConfig()