Class JobMachineAllocated
java.lang.Object
uk.ac.manchester.spinnaker.nmpi.model.job.JobMachineAllocated
Indicates whether a machine was allocated for a job.
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty for serialisation.JobMachineAllocated
(boolean allocated) Create an instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determine if the job is allocated.void
setAllocated
(boolean allocated) Set the job allocation status.
-
Constructor Details
-
JobMachineAllocated
public JobMachineAllocated()Empty for serialisation. -
JobMachineAllocated
public JobMachineAllocated(boolean allocated) Create an instance.- Parameters:
allocated
- Whether the job was allocated.
-
-
Method Details
-
isAllocated
public boolean isAllocated()Determine if the job is allocated.- Returns:
- True if allocated
-
setAllocated
public void setAllocated(boolean allocated) Set the job allocation status.- Parameters:
allocated
- The allocation status
-