Class SimulationAction

java.lang.Object
fr.ifremer.isisfish.actions.SimulationAction

public class SimulationAction extends Object
Actions des simulations.
Version:
$Revision$ Last update: $Date$ by : $Author$
Author:
poussin
  • Field Details

  • Constructor Details

    • SimulationAction

      public SimulationAction(IsisConfig config)
  • Method Details

    • simulateWithRegion

      public static void simulateWithRegion(String simulId, File parameterFile, File region) throws Exception
      Simulate with region file.
      Parameters:
      simulId - simulation unique id
      parameterFile - parameter file
      region - region file to import
      Throws:
      Exception
    • simulationWithRegionNameAndScript

      public static void simulationWithRegionNameAndScript(String simulationId, String regionName, File simulationPrescript) throws Exception
      Deprecated.
      since 4.4.2.3 with no replacement
      Run a simulation with only a region name that already exists and a prescript file.
      Parameters:
      simulationId - simulation unique id
      regionName - region name
      simulationPrescript - simulation prescript
      Throws:
      Exception
      Since:
      4.4.2.1
    • simulateWithSimulation

      public static void simulateWithSimulation(String simulationId, File simulationZip) throws Exception
      Launch a simulation with specified simulationId and simulation zip.
      Parameters:
      simulationId - id de simulation
      simulationZip - Zip de la simulation
      Throws:
      Exception
    • simulateWithSimulationAndScript

      public static void simulateWithSimulationAndScript(String simulationId, File simulationZip, File simulationPrescript) throws Exception
      Launch a simulation with specified simulationId, simulationZip and simulationPrescript.
      Parameters:
      simulationId - id de simulation
      simulationZip - Zip de la simulation
      simulationPrescript - simulation prescript
      Throws:
      Exception
    • simulateRemotelly

      public static void simulateRemotelly(String simulationId, File simulationZip, File simulationResultZip) throws Exception
      Launch a simulation specialized for remote launch (caparmor). Done operations : - simulation zip import - pre script set - simulation - zip creation - checksum creation (zip creation name + .md5 extension) - delete simulation
      Parameters:
      simulationId - id de simulation
      simulationZip - zip de la simulation
      simulationResultZip - simulation result zip
      Throws:
      Exception
    • simulateRemotellyWithPreScript

      public static void simulateRemotellyWithPreScript(String simulationId, File simulationZip, File simulationResultArchive, File simulationPrescript) throws Exception
      Launch a simulation specialized for remote launch (caparmor). Done operations : - simulation zip import - pre script set - simulation - zip creation - checksum creation (zip creation name + .md5 extension) - delete simulation
      Parameters:
      simulationId - id de simulation
      simulationZip - zip de la simulation
      simulationPrescript - simulation prescript (can be null, empty)
      simulationResultArchive - simulation result archive (tbz2 or zip)
      Throws:
      Exception