org.joone.edit
Interface NetStorageFormat
-
- All Known Implementing Classes:
- StandardNetStorageFormat, XMLNetStorageFormat
public interface NetStorageFormatInterface to define a storage format. A StorageFormat is a strategy that knows how to store and restore a NeuralNet according to a specific encoding. Typically it can be recognized by a file extension. To identify a valid file format for a NeuralNet an appropriate FileFilter for a javax.swing.JFileChooser component can be requested.- See Also:
NeuralNet,StorageFormatManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description javax.swing.filechooser.FileFiltergetFileFilter()Return a FileFilter that can be used to identify files which can be stored and restored with this Storage Format.NeuralNetrestore(java.lang.String fileName)Restore a NeuralNet from a file with a given name.java.lang.Stringstore(java.lang.String fileName, NeuralNet saveNet)Store a NeuralNet under a given name.
-
-
-
Method Detail
-
getFileFilter
javax.swing.filechooser.FileFilter getFileFilter()
Return a FileFilter that can be used to identify files which can be stored and restored with this Storage Format. Typically, each storage format has its own recognizable file extension.- Returns:
- FileFilter to be used with a javax.swing.JFileChooser
-
store
java.lang.String store(java.lang.String fileName, NeuralNet saveNet) throws java.io.IOExceptionStore a NeuralNet under a given name.- Parameters:
fileName- file name of the NeuralNet under which it should be storedsaveNeuralNet- NeuralNet to be saved- Returns:
- file name with correct file extension
- Throws:
java.io.IOException
-
restore
NeuralNet restore(java.lang.String fileName) throws java.io.IOException
Restore a NeuralNet from a file with a given name.- Parameters:
name- of the file in which the NeuralNet has been saved- Returns:
- restored NeuralNet
- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG