/*
!=======================================================================
!
!  PROGRAM  PHASE-Viewer  (PHASE-Viewer 2014.01 ver.3.3.0)
!
!  Created on 2006/01/11, 15:58
!  AUTHOR(S): KOGA, Junichiro
!  File : ScriptExecScript.java
!  
!  Contact address :  Phase System Consortium
!                     E-mail: phase_system@nims.go.jp URL https://azuma.nims.go.jp
!
!
!   Since 2002, this program set had been intensively developed as a part of the following 
!  national projects supported by the Ministry of Education, Culture, Sports, Science and
!  Technology (MEXT) of Japan; "Frontier Simulation Software for Industrial Science
!  (FSIS)" from 2002 to 2005, "Revolutionary Simulation Software (RSS21)" from 2006 to
!  2008. "Research and Development of Innovative Simulation Software (RISS)" from 2008
!  to 2013. These projects is lead by the Center for Research on Innovative Simulation 
!  Software (CISS), the Institute of Industrial Science (IIS), the University of Tokyo.
!   Since 2013, this program set has been further developed centering on PHASE System
!  Consortium. 
!   The activity of development of this program set has been supervised by Takahisa Ohno.
!
!=======================================================================
 */

package ciss.phase_viewer.scripting.scriptexecscripts;

import ciss.phase_viewer.ssh.hosts.HostInfo;

/**
 * スクリプトを実行するスクリプトを作成したりするクラスが実装するインターフェース.
 * 
 * @author
 */
public interface ScriptExecScript {
    /**
     * 「スクリプト実行用のスクリプト」を作成, その文字列を返す.
     * 
     * @param execScripts
     *            実行スクリプトの名前を列挙した配列
     * @param hostInfo
     *            ホスト情報; Windowsからジョブを投げる場合, リモートに投げるのかローカルに投げるのかの情報が必要.
     */
    public String createScriptExecScript(String[] execScripts, HostInfo hostInfo);

    /**
     * 「スクリプト実行用のスクリプト」の名前を返す.
     * 
     * @param hostInfo
     *            ホスト情報; Windowsからジョブを投げる場合, リモートに投げるのかローカルに投げるのかの情報が必要.
     */
    public String getScriptExecScriptName(HostInfo hostInfo);

    /**
     * スクリプト実行スクリプトを実行する文字列を返す.
     * 
     * @param scriptExecScript
     *            スクリプト実行スクリプトのパス
     * @param hostInfo
     *            ホスト情報; Windowsからジョブを投げる場合, リモートに投げるのかローカルに投げるのかの情報が必要.
     */
    public String getScriptExecScriptExecString(String scriptExecScript,
            HostInfo hostInfo);

}
