Package adams.flow.core
Class WekaClustererModelLoader
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.core.AbstractModelLoader<weka.clusterers.Clusterer>
-
- adams.flow.core.WekaClustererModelLoader
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,ModelFileHandler
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,FlowContextHandler
,Serializable
public class WekaClustererModelLoader extends AbstractModelLoader<weka.clusterers.Clusterer>
Manages clusterer models.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class adams.flow.core.AbstractModelLoader
AbstractModelLoader.ModelLoadingType
-
-
Field Summary
-
Fields inherited from class adams.flow.core.AbstractModelLoader
m_FlowContext, m_Helper, m_Model, m_ModelActor, m_ModelFile, m_ModelLoadingType, m_ModelStorage
-
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 WekaClustererModelLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
deserializeFile(MessageCollection errors)
Deserializes the model file.protected weka.clusterers.Clusterer
getModelFromContainer(AbstractContainer cont, MessageCollection errors)
Retrieves the model from the container.String
globalInfo()
Returns a string describing the object.-
Methods inherited from class adams.flow.core.AbstractModelLoader
automaticOrderInfo, defineOptions, getFlowContext, getModel, getModelActor, getModelFile, getModelLoadingType, getModelStorage, initialize, loadAutomatically, loadFromCallableActor, loadFromFile, loadFromStorage, modelActorTipText, modelFileTipText, modelLoadingTypeTipText, modelStorageTipText, reset, setFlowContext, setModelActor, setModelFile, setModelLoadingType, setModelStorage, unhandledContainer, unwrapModel
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, 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
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
deserializeFile
protected Object deserializeFile(MessageCollection errors)
Deserializes the model file.- Overrides:
deserializeFile
in classAbstractModelLoader<weka.clusterers.Clusterer>
- Parameters:
errors
- for collecting errors- Returns:
- the object read from the file, null if failed
-
getModelFromContainer
protected weka.clusterers.Clusterer getModelFromContainer(AbstractContainer cont, MessageCollection errors)
Retrieves the model from the container.- Specified by:
getModelFromContainer
in classAbstractModelLoader<weka.clusterers.Clusterer>
- Parameters:
cont
- the container to get the model fromerrors
- for collecting errors- Returns:
- the model, null if not in container
-
-