public interface ModelLoader
ZooModel from a Repository for a model zoo.| Modifier and Type | Method and Description |
|---|---|
Application |
getApplication()
Returns the application of the
ModelLoader. |
java.lang.String |
getArtifactId()
Returns the artifact ID of the
ModelLoader. |
java.util.List<Artifact> |
listModels()
Returns a list of the available artifacts that can be loaded.
|
<I,O> ZooModel<I,O> |
loadModel(Criteria<I,O> criteria)
Loads the model with the given criteria.
|
java.lang.String getArtifactId()
ModelLoader.ModelLoaderApplication getApplication()
ModelLoader.ModelLoader<I,O> ZooModel<I,O> loadModel(Criteria<I,O> criteria) throws java.io.IOException, ModelNotFoundException, MalformedModelException
I - the input data typeO - the output data typecriteria - the criteria to match against the loaded modeljava.io.IOException - for various exceptions loading data from the repositoryModelNotFoundException - if no model with the specified criteria is foundMalformedModelException - if the model data is malformedjava.util.List<Artifact> listModels() throws java.io.IOException, ModelNotFoundException
java.io.IOException - for errors reading the artifact listModelNotFoundException - if models with the mrl defined within this loader are found