Class AbstractOrchestrator

java.lang.Object
es.urjc.etsii.grafo.orchestrator.AbstractOrchestrator
Direct Known Subclasses:
DefaultOrchestrator, InstanceProperties, IraceOrchestrator, UtilOrchestrator

public abstract class AbstractOrchestrator extends Object
Base orchestrator, contains common code. An Orchestrator is the entity responsible for organizing all the work to execute and dispaching it.
  • Constructor Details

    • AbstractOrchestrator

      public AbstractOrchestrator()
  • Method Details

    • decideImplementation

      public static <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? 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 class
      defaultClass - MORK implementation, or a default implementation
      Returns:
      Implementation to use
    • run

      public abstract void run(String... args)
      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

      public List<String> getNames()