Class Job
java.lang.Object
uk.ac.manchester.spinnaker.nmpi.model.job.nmpi.Job
public class Job extends Object
A NMPI job.
-
Constructor Summary
Constructors Constructor Description Job()
-
Method Summary
Modifier and Type Method Description String
getCode()
Get the code to be executed.String
getCollab()
Get the ID of the collaboratory in which the job is created.String
getCommand()
Get the command used to execute the job.Map<String,Object>
getHardwareConfig()
Get the hardware configuration.String
getHardwarePlatform()
Get the hardware platform.Integer
getId()
Get the ID of the job.List<DataItem>
getInputData()
Get the URLs of input data.String
getUserId()
Get the ID of the user who created the job.void
setCode(String code)
Sets the code.void
setCollab(String collab)
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
setId(Integer id)
Sets the id.void
setInputData(List<DataItem> inputData)
Sets the inputData.void
setUserId(String userId)
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
-