public abstract class ModelWalkerEngine extends Engine
Modifier | Constructor and Description |
---|---|
protected |
ModelWalkerEngine(java.lang.String engineId,
EntityType inputType,
EntityType outputType,
ModelWalker... walkers)
Constructs object with the specified identifier, input/output types,
walkers.
|
Modifier and Type | Method and Description |
---|---|
protected ModelVisitor |
getInitVisitor()
Returns initial visitor.
|
protected abstract Entity |
getOutput()
Returns engine output entity.
|
protected ModelWalker[] |
getWalkers()
Return engine walkers.
|
protected abstract void |
initialize(java.util.Map<EntityType,Entity> inputs)
Initializes engine with the specified inputs.
|
protected void |
setWalkers(ModelWalker... walkers)
Sets the specified walker sequence.
|
Entity |
start(java.util.Map<EntityType,Entity> inputs)
Processes entities of the input types and produces an entity of the output type.
|
addBackend, addInputType, addParameter, defines, equals, getId, getInputEntity, getInputTypes, getLogger, getOptionalInputEntity, getOutputType, getParameters, hashCode, parseCommandLine, setOutputType, start, toString
protected ModelWalkerEngine(java.lang.String engineId, EntityType inputType, EntityType outputType, ModelWalker... walkers)
engineId
- Engine identifier.inputType
- Engine model input type.outputType
- Engine model output type.walkers
- Model walkers.java.lang.IllegalArgumentException
- when walkers array is null
.protected abstract void initialize(java.util.Map<EntityType,Entity> inputs)
inputs
- Engine inputs.public Entity start(java.util.Map<EntityType,Entity> inputs)
Engine
protected abstract Entity getOutput()
protected ModelWalker[] getWalkers()
protected final void setWalkers(ModelWalker... walkers)
walkers
- New sequence of walkers.protected final ModelVisitor getInitVisitor()