Class ExecutableTargets
java.lang.Object
uk.ac.manchester.spinnaker.messages.model.ExecutableTargets
Encapsulate the binaries and cores on which to execute them.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProcessor
(String binary, CoreLocation core) Add a processor to the executable targets.void
addSubsets
(String binary, CoreSubsets subsets) Add core subsets to a binary.getCoresForBinary
(String binary) Get the cores that a binary is to run on.int
-
Constructor Details
-
ExecutableTargets
public ExecutableTargets()Create.
-
-
Method Details
-
addSubsets
Add core subsets to a binary.- Parameters:
binary
- the path to the binary needed to be executedsubsets
- the subset of cores that the binary needs to be loaded on
-
addProcessor
Add a processor to the executable targets.- Parameters:
binary
- the binary path for executablecore
- the coordinates on the machine where the binary will run
-
getCoresForBinary
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
- Returns:
- The binaries of the executables.
-
getTotalProcessors
public int getTotalProcessors()- Returns:
- The total number of cores to be loaded.
-
getAllCoreSubsets
- Returns:
- All the core subsets for all the binaries.
-