com.sun.electric
Class Main

java.lang.Object
  extended by com.sun.electric.Main

public final class Main
extends java.lang.Object

This class initializes Electric and starts the system. How to run Electric:

java -jar electric.jar [electric-options] without plugins

java -classpath electric.jardelim{list of plugins} com.sun.electric.Launcher [electric-options] otherwise, where delim is OS-dependant separator

And Electric options are:

-mdi: multiple document interface mode

-sdi: single document interface mode

-NOMINMEM: ignore minimum memory provided for JVM

-s script name: bean shell script to execute

-version: version information

-v: brief version information

-debug: debug mode. Extra information is available

-server: dump strace of snapshots

-help: this message

See manual for more instructions.


Nested Class Summary
static class Main.UserInterfaceDummy
           
 
Method Summary
static long getMemoryUsage()
          Method to return the amount of memory being used by Electric.
static void main(java.lang.String[] args)
          The main entry point of Electric.
static void openCommandLineLibs(java.util.List<java.lang.String> argsList)
          open any libraries specified on the command line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)
The main entry point of Electric.

Parameters:
args - the arguments to the program.

openCommandLineLibs

public static void openCommandLineLibs(java.util.List<java.lang.String> argsList)
open any libraries specified on the command line. This method should be called after any valid options have been parsed out


getMemoryUsage

public static long getMemoryUsage()
Method to return the amount of memory being used by Electric. Calls garbage collection and delays to allow completion, so the method is SLOW.

Returns:
the number of bytes being used by Electric.