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 theModelSerializer
interface for arbitrary models that can react to inputs. Introduces a new type variable for the input symbol type and limits the model type toSimpleTS
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
writeModel(File f, M model, Alphabet<I> alphabet)
Writes the model to the given file.void
writeModel(OutputStream os, M model, Alphabet<I> alphabet)
Writes the model to the given output stream.default void
writeModel(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:ModelSerializer
Writes the model to the given output stream.Note: the output stream will not be closed.
- Specified by:
writeModel
in interfaceModelSerializer<I>
- Parameters:
os
- the output stream to write tomodel
- the model to write- Throws:
IOException
- when writing to the output stream fails.
-
-