Class AbstractWekaPackageManagerAction
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.source.wekapackagemanageraction.AbstractWekaPackageManagerAction
-
- All Implemented Interfaces:
adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.QuickInfoSupporter,adams.core.SizeOfHandler,adams.flow.core.FlowContextHandler,Serializable
- Direct Known Subclasses:
ListPackages
public abstract class AbstractWekaPackageManagerAction extends adams.core.option.AbstractOptionHandler implements adams.core.QuickInfoSupporter, adams.flow.core.FlowContextHandlerAncestor for package manager actions.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.flow.core.Actorm_FlowContextthe flow context.
-
Constructor Summary
Constructors Constructor Description AbstractWekaPackageManagerAction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Stringcheck()Hook method for performing checks.abstract ObjectdoExecute(adams.core.MessageCollection errors)Executes the action.Objectexecute(adams.core.MessageCollection errors)Executes the action.abstract Class[]generates()The types of data the action generates.adams.flow.core.ActorgetFlowContext()Returns the flow context, if any.StringgetQuickInfo()Returns a quick info about the object, which can be displayed in the GUI.voidsetFlowContext(adams.flow.core.Actor value)Sets the flow context.-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
setFlowContext
public void setFlowContext(adams.flow.core.Actor value)
Sets the flow context.- Specified by:
setFlowContextin interfaceadams.flow.core.FlowContextHandler- Parameters:
value- the actor
-
getFlowContext
public adams.flow.core.Actor getFlowContext()
Returns the flow context, if any.- Specified by:
getFlowContextin interfaceadams.flow.core.FlowContextHandler- Returns:
- the actor, null if none available
-
generates
public abstract Class[] generates()
The types of data the action generates.- Returns:
- the output types
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the object, which can be displayed in the GUI.
Default implementation returns null.- Specified by:
getQuickInfoin interfaceadams.core.QuickInfoSupporter- Returns:
- null if no info available, otherwise short string
-
check
protected String check()
Hook method for performing checks.- Returns:
- null if checks passed, otherwise error message
-
doExecute
public abstract Object doExecute(adams.core.MessageCollection errors)
Executes the action.- Parameters:
errors- for collecting errors- Returns:
- the generated output, null if failed to generated
-
execute
public Object execute(adams.core.MessageCollection errors)
Executes the action.- Parameters:
errors- for collecting errors- Returns:
- the generated output, null if failed to generated
-
-