public class LearnLibV2Serialization extends Object implements InputModelSerializationProvider<Integer,DFA<?,Integer>,DFA<Integer,Integer>>
| Constructor and Description |
|---|
LearnLibV2Serialization() |
| Modifier and Type | Method and Description |
|---|---|
static LearnLibV2Serialization |
getInstance() |
CompactDFA<Integer> |
readGenericDFA(InputStream is) |
InputModelData<Integer,DFA<Integer,Integer>> |
readModel(InputStream is)
Reads the contents from the given input stream and de-serializes it into a model instance.
|
<I> void |
writeGenericModel(OutputStream os,
DFA<?,I> model,
Alphabet<I> alphabet) |
void |
writeModel(OutputStream os,
DFA<?,Integer> model,
Alphabet<Integer> alphabet)
Writes the model to the given output stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteModel, writeModelwriteModelreadModel, readModel, readModelpublic static LearnLibV2Serialization getInstance()
public void writeModel(OutputStream os, DFA<?,Integer> model, Alphabet<Integer> alphabet)
InputModelSerializerNote: the output stream will not be closed.
writeModel in interface InputModelSerializer<Integer,DFA<?,Integer>>os - the output stream to write tomodel - the model to writealphabet - the inputs of the model to which serialization should be limitpublic <I> void writeGenericModel(OutputStream os, DFA<?,I> model, Alphabet<I> alphabet)
public InputModelData<Integer,DFA<Integer,Integer>> readModel(InputStream is) throws IOException
ModelDeserializerNote: the input stream will not be closed.
readModel in interface ModelDeserializer<InputModelData<Integer,DFA<Integer,Integer>>>is - the input stream to read data fromIOException - if an error occurred while reading from the streampublic CompactDFA<Integer> readGenericDFA(InputStream is) throws IOException
IOExceptionCopyright © 2020. All rights reserved.