S - The state type of the de-serialized hypothesisI - The default input symbol typepublic interface SimpleAutomatonDeserializer<S,I> extends InputModelDeserializer<I,SimpleAutomaton<S,I>>
InputModelDeserializer that binds the model to SimpleAutomatons. It also adds
new functionality to read systems of arbitrary input type given a transform function from the default input type
(specified by implementing class).
Note: These model-specific interfaces may be omitted if Java starts supporting higher-kinded generics (or we switch to a language that supports these).
| Modifier and Type | Method and Description |
|---|---|
default <I2> InputModelData<I2,SimpleAutomaton<S,I2>> |
readModel(byte[] buf,
Function<I,I2> inputTransformer)
Reads the contents from the given byte buffer and de-serializes it into a
InputModelData that contains
the model and its alphabet definition. |
default <I2> InputModelData<I2,SimpleAutomaton<S,I2>> |
readModel(File f,
Function<I,I2> inputTransformer)
Reads the contents from the given file and de-serializes it into a
InputModelData that contains the model
and its alphabet definition. |
default InputModelData<I,SimpleAutomaton<S,I>> |
readModel(InputStream is)
Reads the contents from the given input stream and de-serializes it into a model instance.
|
<I2> InputModelData<I2,SimpleAutomaton<S,I2>> |
readModel(InputStream is,
Function<I,I2> inputTransformer)
Reads the contents from the given input stream and de-serializes it into a
InputModelData that contains
the model and its alphabet definition. |
default <I2> InputModelData<I2,SimpleAutomaton<S,I2>> |
readModel(URL url,
Function<I,I2> inputTransformer)
Reads the contents from the given URL and de-serializes it into a
InputModelData that contains the model
and its alphabet definition. |
readModel, readModel, readModel<I2> InputModelData<I2,SimpleAutomaton<S,I2>> readModel(InputStream is, Function<I,I2> inputTransformer) throws IOException
InputModelData that contains
the model and its alphabet definition.
Note: the input stream will not be closed.
I2 - the input symbol type of the modelis - the input stream to read data frominputTransformer - a function to transform the inputs of this serializer to inputs of the returned modelInputModelData that contains the model and its alphabet definitionIOException - if an error occurred while reading from the streamFormatException - if the content of the stream was not in the expected formatdefault <I2> InputModelData<I2,SimpleAutomaton<S,I2>> readModel(URL url, Function<I,I2> inputTransformer) throws IOException
InputModelData that contains the model
and its alphabet definition.I2 - the input symbol type of the modelurl - the url to read data frominputTransformer - a function to transform the inputs of this serializer to inputs of the returned modelInputModelData that contains the model and its alphabet definitionIOException - if an error occurred while reading from the streamFormatException - if the content of the stream was not in the expected formatdefault <I2> InputModelData<I2,SimpleAutomaton<S,I2>> readModel(File f, Function<I,I2> inputTransformer) throws IOException
InputModelData that contains the model
and its alphabet definition.I2 - the input symbol type of the modelf - the file to read data frominputTransformer - a function to transform the inputs of this serializer to inputs of the returned modelInputModelData that contains the model and its alphabet definitionIOException - if an error occurred while reading from the streamFormatException - if the content of the stream was not in the expected formatdefault <I2> InputModelData<I2,SimpleAutomaton<S,I2>> readModel(byte[] buf, Function<I,I2> inputTransformer) throws IOException
InputModelData that contains
the model and its alphabet definition.I2 - the input symbol type of the modelbuf - the buffer to read data frominputTransformer - a function to transform the inputs of this serializer to inputs of the returned modelInputModelData that contains the model and its alphabet definitionIOException - if an error occurred while reading from the streamFormatException - if the content of the stream was not in the expected formatdefault InputModelData<I,SimpleAutomaton<S,I>> readModel(InputStream is) throws IOException
ModelDeserializerNote: the input stream will not be closed.
readModel in interface ModelDeserializer<InputModelData<I,SimpleAutomaton<S,I>>>is - the input stream to read data fromIOException - if an error occurred while reading from the streamCopyright © 2020. All rights reserved.