public class StandardWorldModelViewerComponent extends KernelListenerAdapter implements GUIComponent
Constructor and Description |
---|
StandardWorldModelViewerComponent()
Construct a StandardWorldModelViewerComponent.
|
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.
|
void |
simulationStarted(Kernel kernel)
Notification that the kernel has started the simulation.
|
void |
timestepCompleted(Kernel kernel,
Timestep time)
Notification that a timestep has been completed.
|
agentAdded, agentRemoved, simulationEnded, simulatorAdded, simulatorRemoved, viewerAdded, viewerRemoved
public StandardWorldModelViewerComponent()
public void simulationStarted(Kernel kernel)
KernelListener
simulationStarted
in interface KernelListener
simulationStarted
in class KernelListenerAdapter
kernel
- The kernel.public void timestepCompleted(Kernel kernel, Timestep time)
KernelListener
timestepCompleted
in interface KernelListener
timestepCompleted
in class KernelListenerAdapter
kernel
- The kernel.time
- The timestep that has just been completed.public javax.swing.JComponent getGUIComponent()
GUIComponent
getGUIComponent
in interface GUIComponent
public java.lang.String getGUIComponentName()
GUIComponent
getGUIComponentName
in interface GUIComponent