public abstract class CfgEngine extends Engine
Runs internal walkers on the control flow graph model.
Note that while executed, walkers will be used in the same order they appeared in constructor.
Constructor and Description |
---|
CfgEngine(java.lang.String engineId,
EntityType inputType,
EntityType outputType,
CfgWalker... walkers)
Constructs object with the specified identifier, input/output types,
walkers.
|
Modifier and Type | Method and Description |
---|---|
CfgVisitor |
getInitVisitor()
Returns initial visitor.
|
abstract Entity |
getOutput()
Returns engine output entity.
|
CfgWalker[] |
getWalkers()
Return engine walkers.
|
abstract void |
initialize(java.util.Map<EntityType,Entity> inputs)
Initializes engine with the specified inputs.
|
void |
setWalkers(CfgWalker... 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, getInputTypes, getLogger, getMandatoryInputEntity, getOptionalInputEntity, getOutputType, getParameters, hasBackEnds, hashCode, parseCommandLine, runBackEnds, setOutputType, setProgress, start, toString, uses
public CfgEngine(java.lang.String engineId, EntityType inputType, EntityType outputType, CfgWalker... 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
.public abstract void initialize(java.util.Map<EntityType,Entity> inputs)
inputs
- Engine inputs.public Entity start(java.util.Map<EntityType,Entity> inputs)
Engine
public abstract Entity getOutput()
public CfgWalker[] getWalkers()
public final void setWalkers(CfgWalker... walkers)
walkers
- New sequence of walkers.public final CfgVisitor getInitVisitor()