|
OMS (v3.0.25) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oms3.CLI
public class CLI
Command Line interface to run simulations.
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 |
---|
public static java.lang.Object sim(java.lang.String file, java.lang.String ll, java.lang.String cmd) throws java.lang.Exception
file
- the file to executell
- the log levelcmd
- the command to call (e.g. run)
java.lang.Exception
public static void groovy(java.lang.String file, java.lang.String ll, java.lang.String cmd) throws java.lang.Exception
file
- the groovy filell
- th elog level.cmd
-
java.lang.Exception
public static java.lang.Object invoke(java.lang.Object target, java.lang.String name) throws java.lang.Exception
target
- the target simulation objectname
- the name of the method (eg. run())
java.lang.Exception
public static java.lang.String readFile(java.lang.String name) throws java.io.IOException
name
- the file name
java.io.IOException
- something bad happened.public static java.lang.Object createSim(java.lang.String script, boolean groovy, java.lang.String ll)
script
- the scriptgroovy
- ll
-
public static void main(java.lang.String[] args) throws java.lang.Exception
args
-
java.lang.Exception
|
OMS (v3.0.25) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |