public class MiscSimulator extends StandardSimulator implements GUIComponent
simulatorIDconfig, connection, model, random| Constructor and Description |
|---|
MiscSimulator() |
| Modifier and Type | Method and Description |
|---|---|
javax.swing.JComponent |
getGUIComponent()
Get a JComponent that should be added to the GUI.
|
java.lang.String |
getGUIComponentName()
Get the name of this part of the GUI.
|
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.
|
createWorldModelconnect, 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, initialisepublic javax.swing.JComponent getGUIComponent()
GUIComponentgetGUIComponent in interface GUIComponentpublic java.lang.String getGUIComponentName()
GUIComponentgetGUIComponentName in interface GUIComponentprotected void postConnect()
AbstractComponentpostConnect in class StandardSimulatorprotected void processCommands(KSCommands c, ChangeSet changes)
AbstractSimulatorprocessCommands in class AbstractSimulator<StandardWorldModel>c - The commands to process.changes - The ChangeSet to populate.protected void handleUpdate(KSUpdate u)
AbstractSimulatorhandleUpdate in class AbstractSimulator<StandardWorldModel>u - The Update object.