public class SampleSimulator extends AbstractSimulator<DefaultWorldModel<Entity>>
simulatorID
config, 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, shutdown
getName, getPreferredLogContext, getPreferredNDC, getPreferredRegistry, initialise, postConnect, send
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getPreferredLogContext, getPreferredRegistry, initialise
protected DefaultWorldModel<Entity> createWorldModel()
AbstractComponent
createWorldModel
in class AbstractComponent<DefaultWorldModel<Entity>>
protected void postConnect()
AbstractComponent
postConnect
in class AbstractComponent<DefaultWorldModel<Entity>>
protected void handleUpdate(KSUpdate u)
AbstractSimulator
handleUpdate
in class AbstractSimulator<DefaultWorldModel<Entity>>
u
- The Update object.protected void processCommands(KSCommands c, ChangeSet changes)
AbstractSimulator
processCommands
in class AbstractSimulator<DefaultWorldModel<Entity>>
c
- The commands to process.changes
- The ChangeSet to populate.