Class PyNNJobParameters
java.lang.Object
uk.ac.manchester.spinnaker.nmpi.model.job.pynn.PyNNJobParameters
- All Implemented Interfaces:
JobParameters
Represents the parameters required for a PyNN job.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the hardwareConfiguration.Get the setup script.Get the user script.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
-