Class Job
java.lang.Object
uk.ac.manchester.spinnaker.nmpi.model.job.nmpi.Job
A NMPI job.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
Get the code to be executed.Get the ID of the collaboratory in which the job is created.Get the command used to execute the job.Get the hardware configuration.Get the hardware platform.getId()
Get the ID of the job.Get the URLs of input data.Get the ID of the user who created the job.void
Sets the code.void
Sets the collab.void
setCommand
(String command) Sets the command.void
setHardwareConfig
(Map<String, Object> hardwareConfig) Sets the hardwareConfig.void
setHardwarePlatform
(String hardwarePlatform) Sets the hardwarePlatform.void
Sets the id.void
setInputData
(List<DataItem> inputData) Sets the inputData.void
Sets the userId.
-
Constructor Details
-
Job
public Job()
-
-
Method Details
-
getCode
Get the code to be executed.- Returns:
- the code
-
setCode
Sets the code.- Parameters:
code
- the code to set
-
getHardwareConfig
Get the hardware configuration.- Returns:
- the hardwareConfig
-
setHardwareConfig
Sets the hardwareConfig.- Parameters:
hardwareConfig
- the hardwareConfig to set
-
getHardwarePlatform
Get the hardware platform.- Returns:
- the hardwarePlatform
-
setHardwarePlatform
Sets the hardwarePlatform.- Parameters:
hardwarePlatform
- the hardwarePlatform to set
-
getId
Get the ID of the job.- Returns:
- the id
-
setId
Sets the id.- Parameters:
id
- the id to set
-
getInputData
Get the URLs of input data.- Returns:
- the inputData
-
setInputData
Sets the inputData.- Parameters:
inputData
- the inputData to set
-
getCollab
Get the ID of the collaboratory in which the job is created.- Returns:
- the collab
-
setCollab
Sets the collab.- Parameters:
collab
- the collab to set
-
getCommand
Get the command used to execute the job.- Returns:
- the command
-
setCommand
Sets the command.- Parameters:
command
- the command to set
-
getUserId
Get the ID of the user who created the job.- Returns:
- the userId
-
setUserId
Sets the userId.- Parameters:
userId
- the userId to set
-