I - the type of input symbolsM - the type of objects implementing classes can deserializepublic interface InputModelSerializer<I,M extends SimpleTS<?,I>> extends ModelSerializer<InputModelData<I,M>>
ModelSerializer interface for arbitrary models that can react to inputs. Introduces a new
type variable for the input symbol type and limits the model type to SimpleTSs.| Modifier and Type | Method and Description |
|---|---|
default void |
writeModel(File f,
M model,
Alphabet<I> alphabet)
Writes the model to the given file.
|
default void |
writeModel(OutputStream os,
InputModelData<I,M> model)
Writes the model to the given output stream.
|
void |
writeModel(OutputStream os,
M model,
Alphabet<I> alphabet)
Writes the model to the given output stream.
|
writeModelvoid writeModel(OutputStream os, M model, Alphabet<I> alphabet) throws IOException
Note: the output stream will not be closed.
os - the output stream to write tomodel - the model to writealphabet - the inputs of the model to which serialization should be limitIOException - when writing to the output stream fails.default void writeModel(File f, M model, Alphabet<I> alphabet) throws IOException
f - the file to write tomodel - the model to writealphabet - the inputs of the model to which serialization should be limitIOException - when writing to the output stream fails.default void writeModel(OutputStream os, InputModelData<I,M> model) throws IOException
ModelSerializerNote: the output stream will not be closed.
writeModel in interface ModelSerializer<InputModelData<I,M extends SimpleTS<?,I>>>os - the output stream to write tomodel - the model to writeIOException - when writing to the output stream fails.Copyright © 2020. All rights reserved.