Class PyNNJobParameters
java.lang.Object
uk.ac.manchester.spinnaker.nmpi.model.job.pynn.PyNNJobParameters
- All Implemented Interfaces:
JobParameters
public class PyNNJobParameters extends Object implements JobParameters
Represents the parameters required for a PyNN job.
-
Constructor Summary
Constructors Constructor Description PyNNJobParameters()
Create an empty parameters for serialisation.PyNNJobParameters(String workingDirectory, String setupScript, String userScript, Map<String,Object> hardwareConfiguration)
Create a description of the job parameters for a PyNN job. -
Method Summary
Modifier and Type Method Description Map<String,Object>
getHardwareConfiguration()
Get the hardwareConfiguration.String
getSetupScript()
Get the setup script.String
getUserScript()
Get the user script.String
getWorkingDirectory()
Get the workingDirectory.void
setHardwareConfiguration(Map<String,Object> hardwareConfiguration)
Sets the hardwareConfiguration.void
setSetupScript(String setupScript)
Set the setup script.void
setUserScript(String userScript)
Sets the user script.void
setWorkingDirectory(String workingDirectory)
Sets the workingDirectory.
-
Constructor Details
-
PyNNJobParameters
public PyNNJobParameters()Create an empty parameters for serialisation. -
PyNNJobParameters
public PyNNJobParameters(String workingDirectory, String setupScript, String userScript, Map<String,Object> hardwareConfiguration)Create a description of the job parameters for a PyNN job.- Parameters:
workingDirectory
- The working directory to use.setupScript
- The setup script to run before executionuserScript
- The user script to run.hardwareConfiguration
- The hardware configuration desired.
-
-
Method Details
-
getWorkingDirectory
Get the workingDirectory.- Returns:
- the workingDirectory
-
setWorkingDirectory
Sets the workingDirectory.- Parameters:
workingDirectory
- the workingDirectory to set
-
getSetupScript
Get the setup script.- Returns:
- the script
-
setSetupScript
Set the setup script.- Parameters:
setupScript
- the script
-
getUserScript
Get the user script.- Returns:
- the script
-
setUserScript
Sets the user script.- Parameters:
userScript
- the script to set
-
getHardwareConfiguration
Get the hardwareConfiguration.- Returns:
- the hardwareConfiguration
-
setHardwareConfiguration
Sets the hardwareConfiguration.- Parameters:
hardwareConfiguration
- the hardwareConfiguration to set
-