Package es.urjc.etsii.grafo.orchestrator
Class AbstractOrchestrator
java.lang.Object
es.urjc.etsii.grafo.orchestrator.AbstractOrchestrator
- Direct Known Subclasses:
DefaultOrchestrator
,InstanceProperties
,IraceOrchestrator
,UtilOrchestrator
Base orchestrator, contains common code.
An Orchestrator is the entity responsible for organizing all the work to execute and dispaching it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
decideImplementation
(List<? extends T> list, Class<? extends T> defaultClass) Given a list of implementations for a given class, which one should be used if we can only use one?getNames()
abstract void
Run the Mork core, depending on the work to do.
-
Constructor Details
-
AbstractOrchestrator
public AbstractOrchestrator()
-
-
Method Details
-
decideImplementation
Given a list of implementations for a given class, which one should be used if we can only use one? If the user has implemented a component, always prefer the user component to default or mork ones.- Type Parameters:
T
- Class type- Parameters:
list
- List of implementations for a given base classdefaultClass
- MORK implementation, or a default implementation- Returns:
- Implementation to use
-
run
Run the Mork core, depending on the work to do. For example: there are two execution modes, standalone experiments and irace autoconfiguration.- Parameters:
args
- command line parameters
-
getNames
-