java.lang
Class System

java.lang.Object
  extended by java.lang.System

public final class System
extends Object

System utilities.


Field Summary
static PrintStream err
           
static PrintStream out
           
static int VM_TYPECHECKS
           
 
Method Summary
static void arraycopy(Object src, int srcOffset, Object dest, int destOffset, int length)
          Copies one array to another.
static void boot()
          Boot into firmware update mode.
static long currentTimeMillis()
          Current time expressed in milliseconds.
static int diagn(int code, int param)
          Diagnostic tool (for firmware developers only)
static void enableRunTimeTypeChecks(boolean on)
          Enable/Disable strict run time type checking for some operations within the Virtual Machine.
static void exit(int code)
          Terminate the application.
static void gc()
          Collect garbage
static int getFirmwareMajorVersion()
           
static int getFirmwareMinorVersion()
           
static int getFirmwareRevision()
           
static int getProgramExecutionsCount()
          Get the number of times a Java program (including the menu) has executed since the brick was swiched on
static Runtime getRuntime()
          Get the singleton instance of Runtime.
static int getVMOptions()
          Return the currently operating Virtual Machine options.
static int identityHashCode(Object obj)
           
static void setErr(PrintStream err)
          Redirect System.err
static void setOut(PrintStream out)
          Redirect System.out
static void setVMOptions(int options)
          Control the run time operation of the leJOS Virtual Machine.
static void shutDown()
          Shutdown the brick
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VM_TYPECHECKS

public static final int VM_TYPECHECKS
See Also:
Constant Field Values

out

public static PrintStream out

err

public static PrintStream err
Method Detail

arraycopy

public static void arraycopy(Object src,
                             int srcOffset,
                             Object dest,
                             int destOffset,
                             int length)
Copies one array to another.


exit

public static void exit(int code)
Terminate the application.


currentTimeMillis

public static long currentTimeMillis()
Current time expressed in milliseconds. In the RCX, this is the number of milliseconds since the RCX has been on. (In Java, this would be since January 1st, 1970).


getRuntime

public static Runtime getRuntime()
Get the singleton instance of Runtime.


identityHashCode

public static int identityHashCode(Object obj)

gc

public static void gc()
Collect garbage


shutDown

public static void shutDown()
Shutdown the brick


boot

public static void boot()
Boot into firmware update mode.


diagn

public static int diagn(int code,
                        int param)
Diagnostic tool (for firmware developers only)


setOut

public static void setOut(PrintStream out)
Redirect System.out

Parameters:
out - a PrintStream

setErr

public static void setErr(PrintStream err)
Redirect System.err

Parameters:
err - a PrintStream

getProgramExecutionsCount

public static int getProgramExecutionsCount()
Get the number of times a Java program (including the menu) has executed since the brick was swiched on

Returns:
the count

getFirmwareMajorVersion

public static int getFirmwareMajorVersion()

getFirmwareMinorVersion

public static int getFirmwareMinorVersion()

getFirmwareRevision

public static int getFirmwareRevision()

setVMOptions

public static void setVMOptions(int options)
Control the run time operation of the leJOS Virtual Machine.

Parameters:
options - Bit flags.

getVMOptions

public static int getVMOptions()
Return the currently operating Virtual Machine options.

Returns:
the options

enableRunTimeTypeChecks

public static void enableRunTimeTypeChecks(boolean on)
Enable/Disable strict run time type checking for some operations within the Virtual Machine.

Parameters:
on -