|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.peace_tools.generic.GenericWizardPage
org.peace_tools.core.job.MSTWizardPage
public class MSTWizardPage
This class serves as an interactive page in a JobWizard. This page permits the user to provide the information about the local MST file where the data is to be stored. This wizard page also permits the user to select a server on which the job must be run. In addition, the wizard page permits the user to specify the number of nodes and CPUs to be used for a parallel job. Note that this wizard page checks to ensure that the MST file does not exist, yet.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
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 |
browse
The browse button to be enabled the user to choose the directory where the file is to be stored. |
private static java.lang.String |
CPU_INFO_MSG
A generic informational message that is displayed to the user to provide information about the u/v heuristic. |
private static java.lang.String |
INVALID_MST_MSG
A generic informational message that is displayed to the user if the selected MST file is invalid. |
private javax.swing.JTextField |
mstFile
Field to read/display the install path where the MST file will be saved after it is generated on the server. |
private javax.swing.JSpinner[] |
nodeInfo
The array of two configuration parameter values for the CPUs and nodes per CPU on the server. |
private static long |
serialVersionUID
A serialization UID to keep the compiler happy. |
private javax.swing.JComboBox |
serverList
The combo box that permits the user to select the server to be used for running the job. |
private JobWizard |
wizard
A reference to the wizard dialog that logically owns this page. |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
MSTWizardPage(JobWizard wizard)
The constructor. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Method to handle clicking of "Browse" button. |
private javax.swing.JComponent |
createMSTFileBox()
Helper method to create the MST file entry dialog box along with a "Browse" button. |
private javax.swing.JPanel |
createServerList()
Helper method to create the combo-box to select a server. |
private javax.swing.JPanel |
createServerPanel()
Helper method to create the server information entry components in this wizard page. |
protected java.lang.String |
getMSTFile()
Obtain the path to the MST file entered by the user. |
protected int[] |
getPlatformConfiguration()
Obtain platform-specific job configuration information. |
protected Server |
getSelectedServer()
Helper method to obtain selected server ID. |
protected java.lang.String |
getSummary(java.lang.String indent)
Obtain the name of the server that the user has selected. |
void |
pageChanged(WizardDialog dialog,
int currPage,
int prevPage)
This method is called just before this page is to be displayed. |
boolean |
pageChanging(WizardDialog dialog,
int currPage,
int nextPage)
This method validates the MST file set for in this page. |
void |
stateChanged(javax.swing.event.ChangeEvent e)
Listener for CPUs and Nodes/CPU spinner input boxes to update memory. |
Methods inherited from class org.peace_tools.generic.GenericWizardPage |
---|
getPage, getSubTitle, getTitle, setTitle |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final JobWizard wizard
private javax.swing.JTextField mstFile
private javax.swing.JButton browse
private javax.swing.JComboBox serverList
private javax.swing.JSpinner[] nodeInfo
private static final java.lang.String CPU_INFO_MSG
private static final java.lang.String INVALID_MST_MSG
private static final long serialVersionUID
Constructor Detail |
---|
public MSTWizardPage(JobWizard wizard)
wizard
- The wizard that logically owns this page.Method Detail |
---|
private javax.swing.JComponent createMSTFileBox()
private javax.swing.JPanel createServerPanel()
private javax.swing.JPanel createServerList()
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public void pageChanged(WizardDialog dialog, int currPage, int prevPage)
pageChanged
in interface WizardPage
pageChanged
in class GenericWizardPage
dialog
- The wizard dialog that is invoking this method.currPage
- The logical (zero-based) index of the current
page in the sequence of pages in the wizard that is going to
be displayed.prevPage
- The logical (zero-based) index of the previous
page that was displayed. For the first page this value is
-1.public boolean pageChanging(WizardDialog dialog, int currPage, int nextPage)
pageChanging
in interface WizardPage
pageChanging
in class GenericWizardPage
dialog
- The wizard dialog that is invoking this method.currPage
- The logical (zero-based) index of the current
page in the sequence of pages in the wizard.nextPage
- The logical (zero-based) index of the next
page that is going to be displayed.
protected java.lang.String getMSTFile()
protected Server getSelectedServer()
protected java.lang.String getSummary(java.lang.String indent)
indent
- A simple indent string for indenting the data
displayed by this server.
protected int[] getPlatformConfiguration()
public void stateChanged(javax.swing.event.ChangeEvent e)
This method is invoked whenever the user modifies the number of CPUs or nodes-per-CPU to be used for the job. This method updates the recommended amount of memory to be reserved for this job. The memory is computed using the formula:
Memory = (CPUs * NodesPerCPU * FASTAFileSize) + (CPUs * NodesPerCPU * 256MB)
stateChanged
in interface javax.swing.event.ChangeListener
e
- The change event associated with this call back. Currently,
this parameters is not used by this method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |