public class CollapseSimulator extends StandardSimulator implements GUIComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
simulatorID
config, 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, shutdown
getPreferredLogContext, getPreferredNDC, getPreferredRegistry, initialise, postConnect, send
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPreferredLogContext, getPreferredRegistry, initialise
public static final java.lang.String NAME
protected StandardWorldModel createWorldModel()
createWorldModel
in class StandardSimulator
public javax.swing.JComponent getGUIComponent()
GUIComponent
getGUIComponent
in interface GUIComponent
public java.lang.String getGUIComponentName()
GUIComponent
getGUIComponentName
in interface GUIComponent
public java.lang.String getName()
Component
getName
in interface Component
getName
in class AbstractComponent<StandardWorldModel>
protected void postConnect()
AbstractComponent
postConnect
in class StandardSimulator
protected void processCommands(KSCommands c, ChangeSet changes)
AbstractSimulator
processCommands
in class AbstractSimulator<StandardWorldModel>
c
- The commands to process.changes
- The ChangeSet to populate.public CollapseWorldModel model()
protected void processMessage(Message msg)
AbstractComponent
processMessage
in class AbstractSimulator<StandardWorldModel>
msg
- The incoming message.public static void main(java.lang.String[] args)