public class SimpleConfigPanel extends JPanel
JComponent.AccessibleJComponentComponent.BaselineResizeBehaviorTOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
SimpleConfigPanel(ForecastingPanel parent)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyToEvaluation(TSEvaluation eval,
WekaForecaster forecaster)
Apply the selected settings of this panel to the supplied evaluation module
with respect to the supplied forecaster
|
void |
applyToForecaster(WekaForecaster forecaster)
Apply the selected settings of this panel to the supplied WekaForecaster.
|
WekaForecaster |
getForecaster()
Get the WekaForecaster that is being configured.
|
int |
getHorizon()
Get the horizon (i.e.
|
int |
getHorizonValue()
Get the value in the horizon spinner (i.e.
|
String |
getSelectedTimeStampField()
Get the selected time stamp field name.
|
String |
getTabTitle()
Get the title for this panel suitable for displaying in a tab.
|
String |
getTabTitleToolTip()
Get the tool tip for this panel.
|
boolean |
isUsingANativeTimeStamp()
Returns true if the forecaster is using a time stamp defined in the data
(rather than no time stamp or an artificially generated one)
|
static void |
main(String[] args)
Tests the simple config panel from the command line.
|
void |
setAdvancedConfig(AdvancedConfigPanel adv)
Set a reference to the advanced configuration panel.
|
void |
setForecaster(WekaForecaster forecaster)
Set the WekaForecaster that is to be configured by this panel.
|
void |
setHorizon(int horizon)
Set the horizon (i.e.
|
void |
setInstances(weka.core.Instances insts)
Set the instances that will be used to train and/or test the forecaster.
|
getAccessibleContext, getUI, getUIClassID, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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, transferFocusUpCyclepublic SimpleConfigPanel(ForecastingPanel parent)
parent - the parent ForecastingPanelpublic String getTabTitle()
public String getTabTitleToolTip()
public int getHorizonValue()
public void setAdvancedConfig(AdvancedConfigPanel adv)
adv - a reference to the advanced configuration panel.public void setForecaster(WekaForecaster forecaster)
forecaster - the WekaForecaster that is to be configured by this
panel.public boolean isUsingANativeTimeStamp()
public String getSelectedTimeStampField()
public WekaForecaster getForecaster()
public void setHorizon(int horizon)
horizon - the number of steps to forecast.public int getHorizon()
public void setInstances(weka.core.Instances insts)
throws Exception
insts - the instances for training/testingException - if a problem occurs while configuring based on the
supplied instances.public void applyToForecaster(WekaForecaster forecaster) throws Exception
forecaster - the WekaForecaster to configureException - if there is a problem configuring.public void applyToEvaluation(TSEvaluation eval, WekaForecaster forecaster) throws Exception
eval - the evaluation module to configureforecaster - the forecaster in useException - if a problem occurs during configuration.public static void main(String[] args)
args - must contain the name of an arff file to load.Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.