public final class EngineRegistry
extends java.lang.Object
Engine
engine registry. The main function is to compose a
ToolChain
tool chain for given targets (entities to be generated).Modifier and Type | Field and Description |
---|---|
static boolean |
ENABLE_CYCLE_DEPENDENCIES
Enables/disables cycle dependencies between engines.
|
Constructor and Description |
---|
EngineRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
add(Engine engine)
Adds an engine into the configuration.
|
ToolChain |
getEngine(java.util.Set<EntityType> targets,
java.util.Set<Engine> engines,
java.util.Set<EntityType> sources)
Returns an engine (a tool chain) capable to generate targets on the base of the sources.
|
Engine |
getEngine(java.lang.String id)
Returns an engine with the given identifier.
|
java.util.Collection<Engine> |
getEngines()
Returns the collection of all available engines.
|
java.util.Collection<EntityType> |
getTargets()
Returns the collection of all available targets (output types of engines).
|
public static boolean ENABLE_CYCLE_DEPENDENCIES
public Engine getEngine(java.lang.String id)
id
- the engine identifier.null
if such engine does not exist.public void add(Engine engine)
engine
- the engine to be added.public java.util.Collection<Engine> getEngines()
public java.util.Collection<EntityType> getTargets()
public ToolChain getEngine(java.util.Set<EntityType> targets, java.util.Set<Engine> engines, java.util.Set<EntityType> sources)
targets
- the entities to be generated.engines
- the engines to be used.sources
- the given entities.