public class CollapseSimulator extends StandardSimulator implements GUIComponent
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
simulatorIDconfig, connection, model, random| Constructor and Description |
|---|
CollapseSimulator() |
| Modifier and Type | Method and Description |
|---|---|
protected StandardWorldModel |
createWorldModel()
This method instantiate a CollapseWorldModel instance.
|
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.
|
java.lang.String |
getName()
Get the name of this component.
|
static void |
main(java.lang.String[] args) |
CollapseWorldModel |
model() |
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.
|
protected void |
processMessage(Message msg)
Process an incoming message.
|
connect, getSimulatorID, handleCommands, handleUpdate, postConnect, processImmediately, requestNewEntityIDs, shutdowngetPreferredLogContext, getPreferredNDC, getPreferredRegistry, initialise, postConnect, sendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPreferredLogContext, getPreferredRegistry, initialisepublic static final java.lang.String NAME
protected StandardWorldModel createWorldModel()
createWorldModel in class StandardSimulatorpublic javax.swing.JComponent getGUIComponent()
GUIComponentgetGUIComponent in interface GUIComponentpublic java.lang.String getGUIComponentName()
GUIComponentgetGUIComponentName in interface GUIComponentpublic java.lang.String getName()
ComponentgetName in interface ComponentgetName in class AbstractComponent<StandardWorldModel>protected 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.public CollapseWorldModel model()
protected void processMessage(Message msg)
AbstractComponentprocessMessage in class AbstractSimulator<StandardWorldModel>msg - The incoming message.public static void main(java.lang.String[] args)