public class TrafficSimulator extends StandardSimulator implements GUIComponent
Modifier and Type | Field and Description |
---|---|
static ShapeDebugFrame |
debug |
simulatorID
config, connection, model, random
Constructor and Description |
---|
TrafficSimulator()
Construct a new TrafficSimulator.
|
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.
|
createWorldModel
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
public static ShapeDebugFrame debug
public javax.swing.JComponent getGUIComponent()
GUIComponent
getGUIComponent
in interface GUIComponent
public java.lang.String getGUIComponentName()
GUIComponent
getGUIComponentName
in interface GUIComponent
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.protected void handleUpdate(KSUpdate u)
AbstractSimulator
handleUpdate
in class AbstractSimulator<StandardWorldModel>
u
- The Update object.