Package fr.ifremer.isisfish.actions
Class SimulationAction
java.lang.Object
fr.ifremer.isisfish.actions.SimulationAction
Actions des simulations.
- Version:
- $Revision$ Last update: $Date$ by : $Author$
- Author:
- poussin
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
simulateRemotelly
(String simulationId, File simulationZip, File simulationResultZip) Launch a simulation specialized for remote launch (caparmor).static void
simulateRemotellyWithPreScript
(String simulationId, File simulationZip, File simulationResultArchive, File simulationPrescript) Launch a simulation specialized for remote launch (caparmor).static void
simulateWithRegion
(String simulId, File parameterFile, File region) Simulate with region file.static void
simulateWithSimulation
(String simulationId, File simulationZip) Launch a simulation with specified simulationId and simulation zip.static void
simulateWithSimulationAndScript
(String simulationId, File simulationZip, File simulationPrescript) Launch a simulation with specified simulationId, simulationZip and simulationPrescript.static void
simulationWithRegionNameAndScript
(String simulationId, String regionName, File simulationPrescript) Deprecated.since 4.4.2.3 with no replacement
-
Field Details
-
config
-
-
Constructor Details
-
SimulationAction
-
-
Method Details
-
simulateWithRegion
public static void simulateWithRegion(String simulId, File parameterFile, File region) throws Exception Simulate with region file.- Parameters:
simulId
- simulation unique idparameterFile
- parameter fileregion
- 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 replacementRun a simulation with only a region name that already exists and a prescript file.- Parameters:
simulationId
- simulation unique idregionName
- region namesimulationPrescript
- simulation prescript- Throws:
Exception
- Since:
- 4.4.2.1
-
simulateWithSimulation
Launch a simulation with specified simulationId and simulation zip.- Parameters:
simulationId
- id de simulationsimulationZip
- 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 simulationsimulationZip
- Zip de la simulationsimulationPrescript
- 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 simulationsimulationZip
- zip de la simulationsimulationResultZip
- 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 simulationsimulationZip
- zip de la simulationsimulationPrescript
- simulation prescript (can be null, empty)simulationResultArchive
- simulation result archive (tbz2 or zip)- Throws:
Exception
-