|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.swans.Main
public final class Main
Primary entry-point into the SWANS simulator. Performs cmd-line parsing, and general initialisation of simulation.
Nested Class Summary | |
---|---|
private static class |
Main.CommandLineOptions
Data structure for command-line options. |
Field Summary | |
---|---|
static boolean |
ASSERT
Whether certain checks are performed. |
static java.lang.String |
VERSION
SWANS version. |
Constructor Summary | |
---|---|
Main()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
SWANS entry point. |
private static Main.CommandLineOptions |
parseCommandLineOptions(java.lang.String[] args)
Parse command-line options. |
private static void |
showUsage()
Print SWANS syntax. |
private static void |
showVersion()
Print SWANS syntax. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VERSION
public static final boolean ASSERT
Constructor Detail |
---|
public Main()
Method Detail |
---|
private static void showVersion()
private static void showUsage()
private static Main.CommandLineOptions parseCommandLineOptions(java.lang.String[] args) throws jargs.gnu.CmdLineParser.OptionException
args
- command-line options
CmdLineParser.OptionException
- invalid optionpublic static void main(java.lang.String[] args)
args
- command-line arguments
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |