public class BoundaryPanelDistributed extends BoundaryPanel
BoundaryPanel
,
Serialized FormBoundaryPanel.PlotThread
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected static int |
AVAILABLE |
protected static int |
CONNECTION_FAILED |
protected static int |
IN_USE |
protected Vector |
m_listeners
a list of RemoteExperimentListeners
|
protected Vector |
m_remoteHosts
Holds the names of machines with remoteEngine servers running
|
protected static int |
MAX_FAILURES |
protected static int |
SOME_OTHER_FAILURE |
DEFAULT_COLORS, m_classifier, m_Colors, m_dataGenerator, m_maxX, m_maxY, m_minX, m_minY, m_numOfSamplesPerGenerator, m_numOfSamplesPerRegion, m_osi, m_panelHeight, m_panelWidth, m_pixHeight, m_pixWidth, m_plotTrainingData, m_probabilityCache, m_samplesBase, m_stopPlotting, m_stopReplotting, m_trainingData, m_xAttribute, m_yAttribute, REMOVE_POINT_RADIUS
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
BoundaryPanelDistributed(int panelWidth,
int panelHeight)
Creates a new
BoundaryPanelDistributed instance. |
Modifier and Type | Method and Description |
---|---|
void |
addRemoteExperimentListener(RemoteExperimentListener r)
Add an object to the list of those interested in recieving update
information from the RemoteExperiment
|
protected void |
availableHost(int hostNum)
Push a host back onto the list of available hosts and launch a waiting
Task (if any).
|
protected void |
incrementFailed(int hostNum)
Increment the overall number of failures and the number of failures for
a particular host
|
protected void |
incrementFinished()
Increment the number of successfully completed sub experiments
|
protected void |
initialize()
Set up the off screen bitmap for rendering to
|
protected void |
launchNext(int wtask,
int ah) |
static void |
main(String[] args)
Main method for testing this class
|
void |
setRemoteHosts(Vector remHosts)
Set a list of host names of machines to distribute processing to
|
void |
start()
Start processing
|
protected void |
waitingTask(int expNum)
Push an experiment back on the queue of waiting experiments
|
addActionListener, addMouseListener, addTrainingInstance, addTrainingInstanceFromMouseLocation, computeMinMaxAtts, getColors, getGeneratorSamplesBase, getMaxXBound, getMaxYBound, getMinXBound, getMinYBound, getNumSamplesPerRegion, getPlotTrainingData, plotPoint, plotTrainingData, removeActionListener, removeAllInstances, removeTrainingInstanceFromMouseLocation, replot, saveImage, setClassifier, setColors, setDataGenerator, setGeneratorSamplesBase, setNumSamplesPerRegion, setPlotTrainingData, setTrainingData, setXAttribute, setYAttribute, startPlotThread, stopPlotting
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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
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
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, 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, 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
protected Vector m_listeners
protected Vector m_remoteHosts
protected static final int AVAILABLE
protected static final int IN_USE
protected static final int CONNECTION_FAILED
protected static final int SOME_OTHER_FAILURE
protected static final int MAX_FAILURES
public BoundaryPanelDistributed(int panelWidth, int panelHeight)
BoundaryPanelDistributed
instance.panelWidth
- width of the displaypanelHeight
- height of the displaypublic void setRemoteHosts(Vector remHosts)
remHosts
- a Vector of host names (Strings)public void addRemoteExperimentListener(RemoteExperimentListener r)
r
- a listenerprotected void initialize()
BoundaryPanel
initialize
in class BoundaryPanel
public void start() throws Exception
start
in class BoundaryPanel
Exception
- if an error occursprotected void availableHost(int hostNum)
hostNum
- the number of the host to return to the queue. -1
if no host to return.protected void incrementFinished()
protected void incrementFailed(int hostNum)
hostNum
- the index of the host to increment failure countprotected void waitingTask(int expNum)
expNum
- the index of the experiment to push onto the queueprotected void launchNext(int wtask, int ah)
public static void main(String[] args)
args
- a String[]
valueCopyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.