Class ExecutableTargets

java.lang.Object
uk.ac.manchester.spinnaker.messages.model.ExecutableTargets

public class ExecutableTargets
extends Object
Encapsulate the binaries and cores on which to execute them.
  • Constructor Details

  • Method Details

    • addSubsets

      public void addSubsets​(String binary, CoreSubsets subsets)
      Add core subsets to a binary.
      Parameters:
      binary - the path to the binary needed to be executed
      subsets - the subset of cores that the binary needs to be loaded on
    • addProcessor

      public void addProcessor​(String binary, CoreLocation core)
      Add a processor to the executable targets.
      Parameters:
      binary - the binary path for executable
      core - the coordinates on the machine where the binary will run
    • getCoresForBinary

      public CoreSubsets getCoresForBinary​(String binary)
      Get the cores that a binary is to run on.
      Parameters:
      binary - The binary to find the cores for
      Returns:
      Which cores are to run the binary.
    • getBinaries

      public Set<String> getBinaries()
      Returns:
      The binaries of the executables.
    • getTotalProcessors

      public int getTotalProcessors()
      Returns:
      The total number of cores to be loaded.
    • getAllCoreSubsets

      public CoreSubsets getAllCoreSubsets()
      Returns:
      All the core subsets for all the binaries.