Class AbstractGOEValueDefinition
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.source.valuedefinition.AbstractValueDefinition
-
- adams.flow.source.valuedefinition.AbstractGOEValueDefinition
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,FlowContextHandler,Serializable
- Direct Known Subclasses:
GOEValueDefinition,WekaGOEValueDefinition
public abstract class AbstractGOEValueDefinition extends AbstractValueDefinition
Ancestor for GOE-based value definitions.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BaseCommandLinem_DefaultClassthe default class.protected BaseClassnamem_SuperClassthe superclass.-
Fields inherited from class adams.flow.source.valuedefinition.AbstractValueDefinition
m_Display, m_Enabled, m_FlowContext, m_Help, m_Name
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AbstractGOEValueDefinition()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanaddToPanel(PropertiesParameterPanel panel)Adds the value to the panel.StringdefaultClassTipText()Returns the tip text for this property.voiddefineOptions()Adds options to the internal list of options.BaseCommandLinegetDefaultClass()Returns the default class (derived from the specified super class).protected abstract BaseCommandLinegetDefaultDefaultClass()Returns the default default class.protected abstract BaseClassnamegetDefaultSuperClass()Returns the default super class.StringgetDefaultValueAsString()Returns the default of the value as string.BaseClassnamegetSuperClass()Returns the super class that all other classes are derived from.PropertiesParameterPanel.PropertyTypegetType()Returns the type of the value.StringheadlessInteraction()Prompts the user to enter a value in headless mode and returns it.protected abstract AbstractChooserPanelnewChooserPanel()Instantiates the new chooser panel.protected booleanrequiresFlowContext()Returns whether flow context is required.voidsetDefaultClass(BaseCommandLine value)Sets the default class (derived from the specified super class).voidsetDefaultValueAsString(String value)Sets the default value as string.voidsetSuperClass(BaseClassname value)Sets the super class that all other classes are derived from.StringsuperClassTipText()Returns the tip text for this property.-
Methods inherited from class adams.flow.source.valuedefinition.AbstractValueDefinition
canBeRestored, check, displayTipText, enabledTipText, getDisplay, getEnabled, getFlowContext, getHelp, getName, helpTipText, nameTipText, setDisplay, setEnabled, setFlowContext, setHelp, setName
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_SuperClass
protected BaseClassname m_SuperClass
the superclass.
-
m_DefaultClass
protected BaseCommandLine m_DefaultClass
the default class.
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractValueDefinition
-
getDefaultSuperClass
protected abstract BaseClassname getDefaultSuperClass()
Returns the default super class.- Returns:
- the default
-
setSuperClass
public void setSuperClass(BaseClassname value)
Sets the super class that all other classes are derived from.- Parameters:
value- the class
-
getSuperClass
public BaseClassname getSuperClass()
Returns the super class that all other classes are derived from.- Returns:
- the class
-
superClassTipText
public String superClassTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDefaultDefaultClass
protected abstract BaseCommandLine getDefaultDefaultClass()
Returns the default default class.- Returns:
- the default
-
setDefaultClass
public void setDefaultClass(BaseCommandLine value)
Sets the default class (derived from the specified super class).- Parameters:
value- the class
-
getDefaultClass
public BaseCommandLine getDefaultClass()
Returns the default class (derived from the specified super class).- Returns:
- the class
-
defaultClassTipText
public String defaultClassTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getType
public PropertiesParameterPanel.PropertyType getType()
Returns the type of the value.- Specified by:
getTypein classAbstractValueDefinition- Returns:
- the type
-
setDefaultValueAsString
public void setDefaultValueAsString(String value)
Sets the default value as string.- Specified by:
setDefaultValueAsStringin classAbstractValueDefinition- Parameters:
value- the default value
-
getDefaultValueAsString
public String getDefaultValueAsString()
Returns the default of the value as string.- Specified by:
getDefaultValueAsStringin classAbstractValueDefinition- Returns:
- the default
-
newChooserPanel
protected abstract AbstractChooserPanel newChooserPanel() throws Exception
Instantiates the new chooser panel.- Returns:
- the panel
- Throws:
Exception- if instantiation of panel fails
-
requiresFlowContext
protected boolean requiresFlowContext()
Returns whether flow context is required.- Specified by:
requiresFlowContextin classAbstractValueDefinition- Returns:
- true if required
-
addToPanel
public boolean addToPanel(PropertiesParameterPanel panel)
Adds the value to the panel.- Specified by:
addToPanelin classAbstractValueDefinition- Parameters:
panel- the panel to add to- Returns:
- true if successfully added
-
headlessInteraction
public String headlessInteraction()
Prompts the user to enter a value in headless mode and returns it.- Specified by:
headlessInteractionin classAbstractValueDefinition- Returns:
- the entered value, null if canceled
-
-