Package net.automatalib.serialization
Interface InputModelSerializer<I,M extends SimpleTS<?,I>>
-
- Type Parameters:
I- the type of input symbolsM- the type of objects implementing classes can deserialize
- All Superinterfaces:
ModelSerializer<InputModelData<I,M>>
- All Known Subinterfaces:
InputModelSerializationProvider<I,OUT,IN>,SimpleAutomatonSerializationProvider<S,I>,SimpleAutomatonSerializer<I>
- All Known Implementing Classes:
AbstractETFWriter,AUTSerializationProvider,DFA2ETFWriter,LearnLibV2Serialization,Mealy2ETFWriterAlternating,Mealy2ETFWriterIO,SAFSerializationDFA,SAFSerializationNFA,TAFSerializationDFA,TAFSerializationMealy
public interface InputModelSerializer<I,M extends SimpleTS<?,I>> extends ModelSerializer<InputModelData<I,M>>
A refinement of theModelSerializerinterface for arbitrary models that can react to inputs. Introduces a new type variable for the input symbol type and limits the model type toSimpleTSs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidwriteModel(File f, M model, Alphabet<I> alphabet)Writes the model to the given file.voidwriteModel(OutputStream os, M model, Alphabet<I> alphabet)Writes the model to the given output stream.default voidwriteModel(OutputStream os, InputModelData<I,M> model)Writes the model to the given output stream.-
Methods inherited from interface net.automatalib.serialization.ModelSerializer
writeModel
-
-
-
-
Method Detail
-
writeModel
void writeModel(OutputStream os, M model, Alphabet<I> alphabet) 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 writealphabet- the inputs of the model to which serialization should be limited- Throws:
IOException- when writing to the output stream fails.
-
writeModel
default void writeModel(File f, M model, Alphabet<I> alphabet) throws IOException
Writes the model to the given file.- Parameters:
f- the file to write tomodel- the model to writealphabet- the inputs of the model to which serialization should be limited- Throws:
IOException- when writing to the output stream fails.
-
writeModel
default void writeModel(OutputStream os, InputModelData<I,M> model) throws IOException
Description copied from interface:ModelSerializerWrites the model to the given output stream.Note: the output stream will not be closed.
- Specified by:
writeModelin interfaceModelSerializer<I>- Parameters:
os- the output stream to write tomodel- the model to write- Throws:
IOException- when writing to the output stream fails.
-
-