Class AmplModelExecutionHandler

    • Method Detail

      • before

        public List<CommandExecution> before​(Path workingDir)
                                      throws IOException
        Description copied from interface: ExecutionHandler
        Method called by the ComputationManager with the working directory as parameter, before the commands are actually executed: it is in charge of any preprocessing of providing the list of commands to be executed. Typically, it will copy input data to the specified working directory, and create the command to be executed with those inputs.

        If the call throws an exception, no command will be executed.

        Parameters:
        workingDir - the working directory used for this computation. Input data may be written to it.
        Returns:
        the list of CommandExecutions to be executed.
        Throws:
        IOException - when an error occurs while wirting to working directory.