@KFStep(category="Time Series",
toolTipText="Forecasting using a time series model")
public class TimeSeriesForecasting
extends JPanel
implements weka.gui.beans.BeanCommon, weka.gui.beans.Visible, weka.gui.beans.EventConstraints, weka.core.EnvironmentHandler, weka.gui.beans.InstanceListener, weka.gui.beans.DataSourceListener
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 |
|---|
TimeSeriesForecasting()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
acceptDataSet(weka.gui.beans.DataSetEvent dse)
Accept an incoming data set
|
void |
acceptInstance(weka.gui.beans.InstanceEvent e)
Accept an incoming instance
|
void |
addInstanceListener(weka.gui.beans.InstanceListener l)
Add an listener to be notified of outgoing InstanceEvents
|
boolean |
connectionAllowed(EventSetDescriptor esd)
Returns true if, at this time, the object will accept a connection
according to the supplied EventSetDescriptor
|
boolean |
connectionAllowed(String eventName)
Returns true if, at this time, the object will accept a connection with
respect to the named event
|
void |
connectionNotification(String eventName,
Object source)
Notify this object that it has been registered as a listener with a source
with respect to the named event
|
void |
disconnectionNotification(String eventName,
Object source)
Notify this object that it has been deregistered as a listener with a
source with respect to the supplied event name
|
static String |
encodeForecasterToBase64(WekaForecaster model,
weka.core.Instances header)
Encode the model and header into a base 64 string.
|
boolean |
eventGeneratable(String eventName)
Returns true, if at the current time, the named event could be generated.
|
String |
getArtificialTimeStartOffset()
Get the offset, from the value associated with the last training instance,
for the artificial time stamp.
|
String |
getCustomName()
Get the custom (descriptive) name for this bean (if one has been set)
|
String |
getEncodedForecaster()
Gets the base 64 encoded forecaster
|
String |
getFilename()
Get the filename to load from.
|
WekaForecaster |
getForecaster()
Get the forecaster.
|
static List<Object> |
getForecaster(String base64encoded)
Decodes and returns a forecasting model (list containing the forecaster and
Instances object containing the structure of the data used to train the
forecaster) from a base 64 string.
|
String |
getNumStepsToForecast()
Get the number of time steps to forecast beyond the end of the incoming
priming data.
|
boolean |
getRebuildForecaster()
Get whether the forecaster will be rebuilt/re-estimated on the incoming
data.
|
String |
getSaveFilename()
Get the name of the file to save the forecasting model to if the user has
opted to rebuild the forecaster using the incoming data.
|
weka.gui.beans.BeanVisual |
getVisual()
Gets the visual appearance of this wrapper bean
|
String |
globalInfo()
Global about information for this component.
|
boolean |
isBusy()
Returns true if.
|
void |
removeInstanceListener(weka.gui.beans.InstanceListener l)
Deregister and remove a listener of InstanceEvents
|
void |
setArtificialTimeStartOffset(String art)
Set the offset, from the value associated with the last training instance,
for the artificial time stamp.
|
void |
setCustomName(String name)
Set a custom (descriptive) name for this bean
|
void |
setEncodedForecaster(String encodedForecaster)
Set the base 64 encoded forecaster.
|
void |
setEnvironment(weka.core.Environment env)
Set environment variables to use.
|
void |
setFilename(String filename)
Set the filename to load from.
|
void |
setLog(weka.gui.Logger logger)
Set the logging object to use
|
void |
setNumStepsToForecast(String n)
Set the number of time steps to forecast beyond the end of the incoming
priming data.
|
void |
setRebuildForecaster(boolean rebuild)
Set whether the forecaster should be rebuilt/re-estimated on the incoming
data.
|
void |
setSaveFilename(String fileName)
Set the name of the file to save the forecasting model out to if the user
has opted to rebuild the forecaster using the incoming data.
|
void |
setVisual(weka.gui.beans.BeanVisual newVisual)
Sets the visual appearance of this wrapper bean
|
void |
stop()
Stop the component from executing.
|
void |
useDefaultVisual()
Use the default images for a data source
|
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 String globalInfo()
public void useDefaultVisual()
useDefaultVisual in interface weka.gui.beans.Visiblepublic void setLog(weka.gui.Logger logger)
setLog in interface weka.gui.beans.BeanCommonlogger - the logging object to usepublic WekaForecaster getForecaster() throws Exception
Exception - if there is a problem loading the forecasterpublic static List<Object> getForecaster(String base64encoded) throws Exception
base64encoded - a ListException - if there is a problem decodingpublic void setEncodedForecaster(String encodedForecaster)
encodedForecaster - a base 64 encoded Listpublic String getEncodedForecaster()
public void setFilename(String filename)
filename - the filename to load frompublic String getFilename()
public void setSaveFilename(String fileName)
fileName - the file name to save to.public String getSaveFilename()
public void setRebuildForecaster(boolean rebuild)
rebuild - true if the forecaster should be rebuilt using the incoming
datapublic boolean getRebuildForecaster()
public boolean connectionAllowed(EventSetDescriptor esd)
connectionAllowed in interface weka.gui.beans.BeanCommonesd - the EventSetDescriptorpublic boolean connectionAllowed(String eventName)
connectionAllowed in interface weka.gui.beans.BeanCommoneventName - the eventpublic void setNumStepsToForecast(String n)
n - the number of steps to forecast.public String getNumStepsToForecast()
public void setArtificialTimeStartOffset(String art)
art - the offset from the last artificial time value in the training
data for which the forecast is requested.public String getArtificialTimeStartOffset()
public void connectionNotification(String eventName, Object source)
connectionNotification in interface weka.gui.beans.BeanCommoneventName - the eventsource - the source with which this object has been registered as a
listenerpublic void disconnectionNotification(String eventName, Object source)
disconnectionNotification in interface weka.gui.beans.BeanCommoneventName - the eventsource - the source with which this object has been registered as a
listenerpublic String getCustomName()
getCustomName in interface weka.gui.beans.BeanCommonpublic boolean isBusy()
isBusy in interface weka.gui.beans.BeanCommonpublic void setCustomName(String name)
setCustomName in interface weka.gui.beans.BeanCommonname - the name to usepublic void stop()
stop in interface weka.gui.beans.BeanCommonpublic void setEnvironment(weka.core.Environment env)
setEnvironment in interface weka.core.EnvironmentHandlerenv - the environment variables to usepublic weka.gui.beans.BeanVisual getVisual()
getVisual in interface weka.gui.beans.Visiblepublic void setVisual(weka.gui.beans.BeanVisual newVisual)
setVisual in interface weka.gui.beans.VisiblenewVisual - a BeanVisual valuepublic static String encodeForecasterToBase64(WekaForecaster model, weka.core.Instances header) throws Exception
model - the forecasting model to encodeheader - empty instances object containing just the structure of the
data used to train the forecasterException - if a problem occurs.public boolean eventGeneratable(String eventName)
eventGeneratable in interface weka.gui.beans.EventConstraintseventName - the name of the event in questionpublic void acceptInstance(weka.gui.beans.InstanceEvent e)
acceptInstance in interface weka.gui.beans.InstanceListenere - incoming InstanceEvent encapsulating the instance to process.public void acceptDataSet(weka.gui.beans.DataSetEvent dse)
acceptDataSet in interface weka.gui.beans.DataSourceListenerdse - incoming DataSetEvent encapsulating the instances to processpublic void addInstanceListener(weka.gui.beans.InstanceListener l)
l - the listener to register to receive outging instance eventspublic void removeInstanceListener(weka.gui.beans.InstanceListener l)
l - the listener to remove.Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.