public class SimulationBihamLevine
extends javax.swing.JApplet
BihamLevine
, MatPlot
, Helpful.pause(int)
Modifier and Type | Class and Description |
---|---|
(package private) static class |
SimulationBihamLevine.ButtonHear
sub-class containing the button listeners
|
(package private) static class |
SimulationBihamLevine.RadioButtonHear
sub-class containing the button listeners for radiobuttons
|
(package private) static class |
SimulationBihamLevine.Runner
sub-class for threading the simulation
|
(package private) static class |
SimulationBihamLevine.SliderHear
methode containing the slide listeners
|
javax.swing.JApplet.AccessibleJApplet
java.applet.Applet.AccessibleApplet
Modifier and Type | Field and Description |
---|---|
private static javax.swing.JButton |
ButtonFrameBackward |
private static javax.swing.JButton |
ButtonFrameForeward |
private static javax.swing.JButton |
ButtonPlay |
private static javax.swing.JButton |
ButtonReset |
(package private) static FuncPlot |
fp
object for plotting the system's statistics
|
private static int |
l
system length (lattice size: lxl)
|
(package private) static BihamLevine |
Mat
object storing the physical content of the system
|
(package private) static int |
maxWaittime |
(package private) static int |
minWaittime |
private static javax.swing.ButtonGroup |
Mode1 |
private static javax.swing.JRadioButton |
Mode1_1 |
private static javax.swing.JRadioButton |
Mode1_2 |
private static javax.swing.ButtonGroup |
Mode2 |
private static javax.swing.JRadioButton |
Mode2_1 |
private static javax.swing.JRadioButton |
Mode2_2 |
private static javax.swing.JRadioButton |
Mode2_3 |
private static javax.swing.JRadioButton |
Mode2_4 |
private static javax.swing.JLabel |
ModeLabel1 |
private static javax.swing.JLabel |
ModeLabel2 |
(package private) static MatPlot |
mp
object for plotting the system's state
|
private static double |
p
density of the initial configuration
|
private static boolean |
periodic
periodicity of the system
|
(package private) static boolean |
playagain |
(package private) static boolean |
playing |
(package private) static boolean |
playOneStep |
private static javax.swing.JSlider |
SliderCarSpeed |
private static javax.swing.JLabel |
SliderCarSpeedLabel |
private static javax.swing.JLabel |
SliderCarSpeedLabelLeft |
private static javax.swing.JLabel |
SliderCarSpeedLabelRight |
private static javax.swing.JSlider |
SliderDensity |
private static javax.swing.JLabel |
SliderDensityLabel |
private static javax.swing.JLabel |
SliderDensityLabelLeft |
private static javax.swing.JLabel |
SliderDensityLabelRight |
private static javax.swing.JSlider |
SliderSpeed |
private static javax.swing.JLabel |
SliderSpeedLabel |
private static javax.swing.JLabel |
SliderSpeedLabelLeft |
private static javax.swing.JLabel |
SliderSpeedLabelRight |
private static int |
t
current time step
|
private static int |
tend
maximal run time (automatic time out)
|
private static int |
v1
velocity of agent type one
|
private static int |
v2
velocity of agent type two
|
private static int |
waittime
time to wait between to steps of simulation
|
accessibleContext, rootPane, rootPaneCheckingEnabled
Constructor and Description |
---|
SimulationBihamLevine() |
Modifier and Type | Method and Description |
---|---|
static void |
checkThreads(boolean test) |
(package private) static void |
doAnimation()
methode containing the animation (updating and waiting)
|
void |
init()
initializing methode for the applet, sets the layout out and initial conditions
|
static void |
prep2Playagain()
/* methode to set the system for playing again after maximum time has been reached or system was finally blocked
|
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
static BihamLevine Mat
static MatPlot mp
static FuncPlot fp
private static int t
private static int tend
private static int waittime
private static int l
private static double p
private static int v1
private static int v2
private static boolean periodic
private static javax.swing.JLabel ModeLabel1
private static javax.swing.JLabel ModeLabel2
private static javax.swing.JRadioButton Mode1_1
private static javax.swing.JRadioButton Mode1_2
private static javax.swing.JRadioButton Mode2_1
private static javax.swing.JRadioButton Mode2_2
private static javax.swing.JRadioButton Mode2_3
private static javax.swing.JRadioButton Mode2_4
private static javax.swing.ButtonGroup Mode1
private static javax.swing.ButtonGroup Mode2
private static javax.swing.JLabel SliderDensityLabel
private static javax.swing.JLabel SliderDensityLabelLeft
private static javax.swing.JLabel SliderDensityLabelRight
private static javax.swing.JLabel SliderSpeedLabel
private static javax.swing.JLabel SliderSpeedLabelLeft
private static javax.swing.JLabel SliderSpeedLabelRight
private static javax.swing.JLabel SliderCarSpeedLabel
private static javax.swing.JLabel SliderCarSpeedLabelLeft
private static javax.swing.JLabel SliderCarSpeedLabelRight
private static javax.swing.JSlider SliderDensity
private static javax.swing.JSlider SliderSpeed
private static javax.swing.JSlider SliderCarSpeed
private static javax.swing.JButton ButtonFrameBackward
private static javax.swing.JButton ButtonPlay
private static javax.swing.JButton ButtonFrameForeward
private static javax.swing.JButton ButtonReset
static int minWaittime
static int maxWaittime
static boolean playing
static boolean playOneStep
static boolean playagain
public void init()
init
in class java.applet.Applet
static void doAnimation()
public static void prep2Playagain()
public static void checkThreads(boolean test)