de.htwdd.rosenkoenig.neuro
Class TrainerDialog

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Dialog
                  extended by javax.swing.JDialog
                      extended by de.htwdd.rosenkoenig.neuro.TrainerDialog
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class TrainerDialog
extends javax.swing.JDialog

Provides a Swing dialog to create, manipulate and train artificial players. Use Eclipse VisualEditor to manipulate this class.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  javax.swing.JButton btnAddLayer
           
private  javax.swing.JButton btnExit
           
private  javax.swing.JButton btnSave
           
private  javax.swing.JButton btnTrain
           
private  javax.swing.JPanel buttonPanel
           
private  javax.swing.JCheckBox checkSOM
           
private  javax.swing.JPanel configPanel
           
private static java.lang.String[] HEADERS
           
private  javax.swing.JPanel jContentPane
           
private  javax.swing.JLabel jLabel
           
private  javax.swing.JLabel jLabel1
           
private  javax.swing.JPanel layerPanel
           
private  javax.swing.JLabel lblAlpha
           
private  javax.swing.JLabel lblBatchsize
           
private  javax.swing.JLabel lblCycles
           
private  javax.swing.JLabel lblError
           
private  javax.swing.JLabel lblEta
           
private  javax.swing.JLabel lblValidation
           
private  org.apache.log4j.Logger log
           
private  javax.swing.JPanel netPanel
           
private  javax.swing.JScrollPane netScrollPane
           
private  javax.swing.JTable netTable
           
private  javax.swing.JList patternList
           
private  javax.swing.JPanel patternPanel
           
private  javax.swing.JScrollPane patternSroller
           
private  NeuroPlayer player
           
private  javax.swing.JPanel playerChoicePanel
           
private  PlayerPanel playerPanel
           
private static long serialVersionUID
           
private  javax.swing.JPanel somPanel
           
private  javax.swing.JSpinner spinAlpha
           
private  javax.swing.JSpinner spinBatchsize
           
private  javax.swing.JSpinner spinCycles
           
private  javax.swing.JSpinner spinError
           
private  javax.swing.JSpinner spinEta
           
private  javax.swing.JSpinner spinNeurons
           
private  javax.swing.JSpinner spinSomNeurons
           
private  javax.swing.JSpinner spinValidation
           
private  javax.swing.JPanel trainingPanel
           
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
DEFAULT_MODALITY_TYPE
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
TrainerDialog(java.awt.Frame owner)
           
 
Method Summary
private  void enableControls(boolean enabled)
           
private  void fillPatternList()
           
private  javax.swing.JButton getBtnAddLayer()
          This method initializes btnAddLayer
private  javax.swing.JButton getBtnExit()
          This method initializes btnExit
private  javax.swing.JButton getBtnSave()
          This method initializes btnSave
private  javax.swing.JButton getBtnTrain()
          This method initializes btnTrain
private  javax.swing.JPanel getButtonPanel()
          This method initializes buttonPanel
private  javax.swing.JCheckBox getCheckSOM()
          This method initializes checkSOM
private  javax.swing.JPanel getConfigPanel()
          This method initializes configPanel
private  javax.swing.JPanel getJContentPane()
          This method initializes jContentPane
private  javax.swing.JPanel getLayerPanel()
          This method initializes layerPanel
private  javax.swing.JPanel getNetPanel()
          This method initializes netPanel
private  javax.swing.JScrollPane getNetScrollPane()
          This method initializes netScrollPane
private  javax.swing.JTable getNetTable()
          This method initializes netTable
private  javax.swing.JList getPatternList()
          This method initializes patternList
private  javax.swing.JPanel getPatternPanel()
          This method initializes patternPanel
private  javax.swing.JScrollPane getPatternSroller()
          This method initializes patternSroller
private  javax.swing.JPanel getPlayerChoicePanel()
          This method initializes playerChoicePanel
private  PlayerPanel getPlayerPanel()
          This method initializes playerPanel
private  javax.swing.JPanel getSomPanel()
          This method initializes somPanel
private  javax.swing.JSpinner getSpinAlpha()
          This method initializes spinAlpha
private  javax.swing.JSpinner getSpinBatchsize()
          This method initializes spinBatchsize
private  javax.swing.JSpinner getSpinCycles()
          This method initializes spinCycles
private  javax.swing.JSpinner getSpinError()
          This method initializes spinError
private  javax.swing.JSpinner getSpinEta()
          This method initializes spinEta
private  javax.swing.JSpinner getSpinNeurons()
          This method initializes spinNeurons
private  javax.swing.JSpinner getSpinSomNeurons()
          This method initializes spinSomNeurons
private  javax.swing.JSpinner getSpinValidation()
          This method initializes spinValidation
private  javax.swing.JPanel getTrainingPanel()
          This method initializes trainingPanel
private  void initialize()
          This method initializes this
 void setVisible(boolean b)
           
private  void updateTable()
           
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
Methods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, show, toBack
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, 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, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HEADERS

private static final java.lang.String[] HEADERS

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

jContentPane

private javax.swing.JPanel jContentPane

playerPanel

private PlayerPanel playerPanel

configPanel

private javax.swing.JPanel configPanel

buttonPanel

private javax.swing.JPanel buttonPanel

btnExit

private javax.swing.JButton btnExit

playerChoicePanel

private javax.swing.JPanel playerChoicePanel

log

private org.apache.log4j.Logger log

player

private NeuroPlayer player

btnTrain

private javax.swing.JButton btnTrain

patternPanel

private javax.swing.JPanel patternPanel

patternList

private javax.swing.JList patternList

netScrollPane

private javax.swing.JScrollPane netScrollPane

netTable

private javax.swing.JTable netTable

netPanel

private javax.swing.JPanel netPanel

layerPanel

private javax.swing.JPanel layerPanel

jLabel

private javax.swing.JLabel jLabel

btnAddLayer

private javax.swing.JButton btnAddLayer

spinNeurons

private javax.swing.JSpinner spinNeurons

btnSave

private javax.swing.JButton btnSave

trainingPanel

private javax.swing.JPanel trainingPanel

spinEta

private javax.swing.JSpinner spinEta

spinAlpha

private javax.swing.JSpinner spinAlpha

spinCycles

private javax.swing.JSpinner spinCycles

spinError

private javax.swing.JSpinner spinError

spinValidation

private javax.swing.JSpinner spinValidation

lblEta

private javax.swing.JLabel lblEta

lblAlpha

private javax.swing.JLabel lblAlpha

lblCycles

private javax.swing.JLabel lblCycles

lblError

private javax.swing.JLabel lblError

lblValidation

private javax.swing.JLabel lblValidation

spinBatchsize

private javax.swing.JSpinner spinBatchsize

lblBatchsize

private javax.swing.JLabel lblBatchsize

patternSroller

private javax.swing.JScrollPane patternSroller

checkSOM

private javax.swing.JCheckBox checkSOM

somPanel

private javax.swing.JPanel somPanel

jLabel1

private javax.swing.JLabel jLabel1

spinSomNeurons

private javax.swing.JSpinner spinSomNeurons
Constructor Detail

TrainerDialog

public TrainerDialog(java.awt.Frame owner)
Parameters:
owner -
Method Detail

initialize

private void initialize()
This method initializes this


getJContentPane

private javax.swing.JPanel getJContentPane()
This method initializes jContentPane

Returns:
javax.swing.JPanel

getPlayerPanel

private PlayerPanel getPlayerPanel()
This method initializes playerPanel

Returns:
de.htwdd.rosenkoenig.gui.PlayerPanel

getConfigPanel

private javax.swing.JPanel getConfigPanel()
This method initializes configPanel

Returns:
javax.swing.JPanel

getButtonPanel

private javax.swing.JPanel getButtonPanel()
This method initializes buttonPanel

Returns:
javax.swing.JPanel

getBtnExit

private javax.swing.JButton getBtnExit()
This method initializes btnExit

Returns:
javax.swing.JButton

getPlayerChoicePanel

private javax.swing.JPanel getPlayerChoicePanel()
This method initializes playerChoicePanel

Returns:
javax.swing.JPanel

getBtnTrain

private javax.swing.JButton getBtnTrain()
This method initializes btnTrain

Returns:
javax.swing.JButton

getPatternPanel

private javax.swing.JPanel getPatternPanel()
This method initializes patternPanel

Returns:
javax.swing.JPanel

getPatternList

private javax.swing.JList getPatternList()
This method initializes patternList

Returns:
javax.swing.JList

fillPatternList

private void fillPatternList()

getNetScrollPane

private javax.swing.JScrollPane getNetScrollPane()
This method initializes netScrollPane

Returns:
javax.swing.JScrollPane

getNetTable

private javax.swing.JTable getNetTable()
This method initializes netTable

Returns:
javax.swing.JTable

getNetPanel

private javax.swing.JPanel getNetPanel()
This method initializes netPanel

Returns:
javax.swing.JPanel

getLayerPanel

private javax.swing.JPanel getLayerPanel()
This method initializes layerPanel

Returns:
javax.swing.JPanel

getBtnAddLayer

private javax.swing.JButton getBtnAddLayer()
This method initializes btnAddLayer

Returns:
javax.swing.JButton

getSpinNeurons

private javax.swing.JSpinner getSpinNeurons()
This method initializes spinNeurons

Returns:
javax.swing.JSpinner

updateTable

private void updateTable()

getBtnSave

private javax.swing.JButton getBtnSave()
This method initializes btnSave

Returns:
javax.swing.JButton

getTrainingPanel

private javax.swing.JPanel getTrainingPanel()
This method initializes trainingPanel

Returns:
javax.swing.JPanel

getSpinEta

private javax.swing.JSpinner getSpinEta()
This method initializes spinEta

Returns:
javax.swing.JSpinner

getSpinAlpha

private javax.swing.JSpinner getSpinAlpha()
This method initializes spinAlpha

Returns:
javax.swing.JSpinner

getSpinCycles

private javax.swing.JSpinner getSpinCycles()
This method initializes spinCycles

Returns:
javax.swing.JSpinner

getSpinError

private javax.swing.JSpinner getSpinError()
This method initializes spinError

Returns:
javax.swing.JSpinner

getSpinValidation

private javax.swing.JSpinner getSpinValidation()
This method initializes spinValidation

Returns:
javax.swing.JSpinner

enableControls

private void enableControls(boolean enabled)
Parameters:
enabled -

getSpinBatchsize

private javax.swing.JSpinner getSpinBatchsize()
This method initializes spinBatchsize

Returns:
javax.swing.JSpinner

setVisible

public void setVisible(boolean b)
Overrides:
setVisible in class java.awt.Dialog

getPatternSroller

private javax.swing.JScrollPane getPatternSroller()
This method initializes patternSroller

Returns:
javax.swing.JScrollPane

getCheckSOM

private javax.swing.JCheckBox getCheckSOM()
This method initializes checkSOM

Returns:
javax.swing.JCheckBox

getSomPanel

private javax.swing.JPanel getSomPanel()
This method initializes somPanel

Returns:
javax.swing.JPanel

getSpinSomNeurons

private javax.swing.JSpinner getSpinSomNeurons()
This method initializes spinSomNeurons

Returns:
javax.swing.JSpinner