Package net.automatalib.serialization
Interface ModelSerializer<M>
-
- Type Parameters:
M
- the type of objects implementing classes can serialize
- All Known Subinterfaces:
InputModelSerializationProvider<I,OUT,IN>
,InputModelSerializer<I,M>
,SerializationProvider<OUT,IN>
,SimpleAutomatonSerializationProvider<S,I>
,SimpleAutomatonSerializer<I>
- All Known Implementing Classes:
AbstractETFWriter
,AUTSerializationProvider
,DFA2ETFWriter
,DOTSerializationProvider
,LearnLibV2Serialization
,Mealy2ETFWriterAlternating
,Mealy2ETFWriterIO
,SAFSerializationDFA
,SAFSerializationNFA
,TAFSerializationDFA
,TAFSerializationMealy
public interface ModelSerializer<M>
A generic interface for formalizing an arbitrary serializer for a given model type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
writeModel(File f, M model)
Writes the model to the given file.void
writeModel(OutputStream os, M model)
Writes the model to the given output stream.
-
-
-
Method Detail
-
writeModel
void writeModel(OutputStream os, M model) throws IOException
Writes the model to the given output stream.Note: the output stream will not be closed.
- Parameters:
os
- the output stream to write tomodel
- the model to write- Throws:
IOException
- when writing to the output stream fails.
-
writeModel
default void writeModel(File f, M model) throws IOException
Writes the model to the given file.- Parameters:
f
- the file to write tomodel
- the model to write- Throws:
IOException
- when writing to the output stream fails.
-
-