lejos.nxt
Class NXT

java.lang.Object
  extended by lejos.nxt.NXT

public class NXT
extends Object

Abstraction for the local NXT Device. Supports methods that are non specific to any particular sub-system.

Author:
Lawrie Griffiths

Constructor Summary
NXT()
           
 
Method Summary
static void boot()
          Boot into firmware update mode.
static void exit(int code)
          Terminate the application.
static int getFirmwareMajorVersion()
          Get the leJOS NXJ firmware major version
static int getFirmwareMinorVersion()
          Get the leJOS NXJ firmware minor version
static int getFirmwareRevision()
          Get the leJOS NXJ firmware revision number
static int getProgramExecutionsCount()
          Get the number of times a Java program (including the menu) has executed since the brick was switched on
static int getUserPages()
          Return the number of flash pages available to user programs.
static void shutDown()
          Shutdown the brick
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NXT

public NXT()
Method Detail

exit

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


shutDown

public static void shutDown()
Shutdown the brick


boot

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


getProgramExecutionsCount

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

Returns:
the count

getFirmwareMajorVersion

public static int getFirmwareMajorVersion()
Get the leJOS NXJ firmware major version

Returns:
the major version number

getFirmwareMinorVersion

public static int getFirmwareMinorVersion()
Get the leJOS NXJ firmware minor version

Returns:
the minor version number

getFirmwareRevision

public static int getFirmwareRevision()
Get the leJOS NXJ firmware revision number

Returns:
the revision number

getUserPages

public static int getUserPages()
Return the number of flash pages available to user programs. Normally these pages are used to hold the leJOS file system.

Returns:
The number of user pages.