public class MLPipelineComponentInstanceFactory
extends java.lang.Object
| Constructor and Description |
|---|
MLPipelineComponentInstanceFactory(java.util.Collection<ai.libs.hasco.model.Component> components)
Creates a new factory object using the given configuration file
|
| Modifier and Type | Method and Description |
|---|---|
ai.libs.hasco.model.ComponentInstance |
convertToComponentInstance(MLPipeline pipeline)
Converts the given MLPipelines object to a ComponentInstance.
|
public MLPipelineComponentInstanceFactory(java.util.Collection<ai.libs.hasco.model.Component> components)
throws java.io.IOException
components - java.io.IOExceptionpublic ai.libs.hasco.model.ComponentInstance convertToComponentInstance(MLPipeline pipeline) throws ai.libs.hasco.serialization.ComponentNotFoundException
pipeline - The pipelines to convertai.libs.hasco.serialization.ComponentNotFoundException - When the pipelines contains elements that are not in the loaded
configuration