Package adams.flow.core
Interface ModelLoaderSupporter
-
- All Superinterfaces:
ModelFileHandler
- All Known Subinterfaces:
DynamicModelLoaderSupporter
- All Known Implementing Classes:
AbstractModelLoader,AbstractProcessWekaInstanceWithModel,WekaClassifierModelLoader,WekaClassifying,WekaClustererModelLoader,WekaClustering,WekaFilter,WekaFilterModelLoader
public interface ModelLoaderSupporter extends ModelFileHandler
Interface for classes that support model loading.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
AbstractModelLoader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CallableActorReferencegetModelActor()Returns the callable actor to obtain the model from.PlaceholderFilegetModelFile()Returns the file to load the model from.AbstractModelLoader.ModelLoadingTypegetModelLoadingType()Returns the loading type.StorageNamegetModelStorage()Returns the storage item name to get the model from.StringmodelActorTipText()Returns the tip text for this property.StringmodelFileTipText()Returns the tip text for this property.StringmodelLoadingTypeTipText()Returns the tip text for this property.StringmodelStorageTipText()Returns the tip text for this property.voidsetModelActor(CallableActorReference value)Sets the callable actor to obtain the model from.voidsetModelFile(PlaceholderFile value)Sets the file to load the model from.voidsetModelLoadingType(AbstractModelLoader.ModelLoadingType value)Sets the loading type.voidsetModelStorage(StorageName value)Sets the storage item name to get the model from.
-
-
-
Method Detail
-
setModelLoadingType
void setModelLoadingType(AbstractModelLoader.ModelLoadingType value)
Sets the loading type. In case ofAbstractModelLoader.ModelLoadingType.AUTO, first file, then callable actor, then storage.- Parameters:
value- the type
-
getModelLoadingType
AbstractModelLoader.ModelLoadingType getModelLoadingType()
Returns the loading type. In case ofAbstractModelLoader.ModelLoadingType.AUTO, first file, then callable actor, then storage.- Returns:
- the type
-
modelLoadingTypeTipText
String modelLoadingTypeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setModelFile
void setModelFile(PlaceholderFile value)
Sets the file to load the model from.- Specified by:
setModelFilein interfaceModelFileHandler- Parameters:
value- the model file
-
getModelFile
PlaceholderFile getModelFile()
Returns the file to load the model from.- Specified by:
getModelFilein interfaceModelFileHandler- Returns:
- the model file
-
modelFileTipText
String modelFileTipText()
Returns the tip text for this property.- Specified by:
modelFileTipTextin interfaceModelFileHandler- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setModelActor
void setModelActor(CallableActorReference value)
Sets the callable actor to obtain the model from.- Parameters:
value- the actor reference
-
getModelActor
CallableActorReference getModelActor()
Returns the callable actor to obtain the model from.- Returns:
- the actor reference
-
modelActorTipText
String modelActorTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setModelStorage
void setModelStorage(StorageName value)
Sets the storage item name to get the model from.- Parameters:
value- the storage name
-
getModelStorage
StorageName getModelStorage()
Returns the storage item name to get the model from.- Returns:
- the storage name
-
modelStorageTipText
String modelStorageTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
-