/**
 * Copyright (c) 2016, RTE (http://www.rte-france.com)
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package com.powsybl.tools;

import com.powsybl.computation.ComputationManager;

import java.io.PrintStream;
import java.nio.file.FileSystem;
import java.util.Objects;

/**
 * @author Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
 */
public class ToolRunningContext {

    private final PrintStream outputStream;

    private final PrintStream errorStream;

    private final FileSystem fileSystem;

    private final ComputationManager shortTimeExecutioncomputationManager;

    private final ComputationManager longTimeExecutionComputationManager;

    public ToolRunningContext(PrintStream outputStream, PrintStream errorStream, FileSystem fileSystem, ComputationManager shortTimeExecutioncomputationManager,
                              ComputationManager longTimeExecutionComputationManager) {
        this.outputStream = Objects.requireNonNull(outputStream);
        this.errorStream = Objects.requireNonNull(errorStream);
        this.fileSystem = Objects.requireNonNull(fileSystem);
        this.shortTimeExecutioncomputationManager = Objects.requireNonNull(shortTimeExecutioncomputationManager);
        this.longTimeExecutionComputationManager = longTimeExecutionComputationManager;
    }

    public PrintStream getOutputStream() {
        return outputStream;
    }

    public PrintStream getErrorStream() {
        return errorStream;
    }

    public FileSystem getFileSystem() {
        return fileSystem;
    }

    public ComputationManager getShortTimeExecutionComputationManager() {
        return shortTimeExecutioncomputationManager;
    }

    public ComputationManager getLongTimeExecutionComputationManager() {
        return longTimeExecutionComputationManager != null ? longTimeExecutionComputationManager : shortTimeExecutioncomputationManager;
    }
}

@@ -1696,32 +1696,299 @@
 eSystem;%0A    %7D%0A%0A
+    /**%0A     * @deprecated Use getShortTimeExecutionComputationManager or getLongTimeExecutionComputationManager instead.%0A     */%0A    @Deprecated%0A    public ComputationManager getComputationManager() %7B%0A        return getShortTimeExecutionComputationManager();%0A    %7D%0A%0A
     public Compu

Fix IPST compilation issue