OMS (v3.0.25)

oms3
Class CLI

java.lang.Object
  extended by oms3.CLI

public class CLI
extends java.lang.Object

Command Line interface to run simulations.

Author:
od

Method Summary
static java.lang.Object createSim(java.lang.String script, boolean groovy, java.lang.String ll)
          Create a simulation object.
static void groovy(java.lang.String file, java.lang.String ll, java.lang.String cmd)
          Executed plain groovy.
static java.lang.Object invoke(java.lang.Object target, java.lang.String name)
          Invokes a simulation method.
static void main(java.lang.String[] args)
           
static java.lang.String readFile(java.lang.String name)
          Read a file and provide its content as String.
static java.lang.Object sim(java.lang.String file, java.lang.String ll, java.lang.String cmd)
          Executes a simulation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sim

public static java.lang.Object sim(java.lang.String file,
                                   java.lang.String ll,
                                   java.lang.String cmd)
                            throws java.lang.Exception
Executes a simulation.

Parameters:
file - the file to execute
ll - the log level
cmd - the command to call (e.g. run)
Throws:
java.lang.Exception

groovy

public static void groovy(java.lang.String file,
                          java.lang.String ll,
                          java.lang.String cmd)
                   throws java.lang.Exception
Executed plain groovy.

Parameters:
file - the groovy file
ll - th elog level.
cmd -
Throws:
java.lang.Exception

invoke

public static java.lang.Object invoke(java.lang.Object target,
                                      java.lang.String name)
                               throws java.lang.Exception
Invokes a simulation method. (run | doc | analysis | ...)

Parameters:
target - the target simulation object
name - the name of the method (eg. run())
Throws:
java.lang.Exception

readFile

public static java.lang.String readFile(java.lang.String name)
                                 throws java.io.IOException
Read a file and provide its content as String.

Parameters:
name - the file name
Returns:
the content as String
Throws:
java.io.IOException - something bad happened.

createSim

public static java.lang.Object createSim(java.lang.String script,
                                         boolean groovy,
                                         java.lang.String ll)
Create a simulation object.

Parameters:
script - the script
groovy -
ll -
Returns:
the simulation object.

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Parameters:
args -
Throws:
java.lang.Exception

OMS (v3.0.25)

Generated 2010-08-11 08:44:20 MDT, USDA-ARS-ASRU/CSU, 2150 Center Ave, Fort Collins, CO 80526, U.S.A.