Class JobMachineAllocated
java.lang.Object
uk.ac.manchester.spinnaker.nmpi.model.job.JobMachineAllocated
public class JobMachineAllocated extends Object
Indicates whether a machine was allocated for a job.
-
Constructor Summary
Constructors Constructor Description JobMachineAllocated()
Empty for serialisation.JobMachineAllocated(boolean allocated)
Create an instance. -
Method Summary
Modifier and Type Method Description boolean
isAllocated()
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
-