public class SampleSimulator extends AbstractSimulator<DefaultWorldModel<Entity>>
simulatorIDconfig, connection, model, random| Constructor and Description |
|---|
SampleSimulator() |
| Modifier and Type | Method and Description |
|---|---|
protected DefaultWorldModel<Entity> |
createWorldModel()
Construct the world model.
|
protected void |
handleUpdate(KSUpdate u)
Handle a KSUpdate object from the server.
|
protected void |
postConnect()
Perform any post-connection work required before acknowledgement of the connection is made.
|
protected void |
processCommands(KSCommands c,
ChangeSet changes)
Process the commands from the server and populate a ChangeSet.
|
connect, getSimulatorID, handleCommands, postConnect, processImmediately, processMessage, requestNewEntityIDs, shutdowngetName, getPreferredLogContext, getPreferredNDC, getPreferredRegistry, initialise, postConnect, sendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getPreferredLogContext, getPreferredRegistry, initialiseprotected DefaultWorldModel<Entity> createWorldModel()
AbstractComponentcreateWorldModel in class AbstractComponent<DefaultWorldModel<Entity>>protected void postConnect()
AbstractComponentpostConnect in class AbstractComponent<DefaultWorldModel<Entity>>protected void handleUpdate(KSUpdate u)
AbstractSimulatorhandleUpdate in class AbstractSimulator<DefaultWorldModel<Entity>>u - The Update object.protected void processCommands(KSCommands c, ChangeSet changes)
AbstractSimulatorprocessCommands in class AbstractSimulator<DefaultWorldModel<Entity>>c - The commands to process.changes - The ChangeSet to populate.