A B C D E F G H I K L M N O P Q R S T U V W 

A

A - Static variable in class ch.aplu.nxt.MotorPort
Declaration used by a motor connected to port A.
ABOUT - Static variable in interface ch.aplu.nxt.SharedConstants
 
activate(boolean) - Method in class ch.aplu.nxt.LightSensor
Turns on/off the LED used for reflecting light back into the sensor.
addCompassListener(CompassListener, int) - Method in class ch.aplu.nxt.CompassSensor
Registers the given compass listener for the given trigger level.
addCompassListener(CompassListener) - Method in class ch.aplu.nxt.CompassSensor
Registers the given compass listener with default trigger level 180.
addLightListener(LightListener, int) - Method in class ch.aplu.nxt.LightSensor
Registers the given light listener for the given trigger level.
addLightListener(LightListener) - Method in class ch.aplu.nxt.LightSensor
Registers the given light listener with default trigger level 500.
addMotionListener(MotionListener) - Method in class ch.aplu.nxt.Gear
Register the given motion listener.
addMotionListener(MotionListener) - Method in class ch.aplu.nxt.Motor
Registers the given motion listener.
addPart(Part) - Method in class ch.aplu.nxt.LegoRobot
Assembles the given part into the robot.
addPrototypeListener(PrototypeListener) - Method in class ch.aplu.nxt.PrototypeSensor
Registers the given prototype listener.
addSoundListener(SoundListener, int) - Method in class ch.aplu.nxt.SoundSensor
Registers the given sound listener for the given trigger level.
addSoundListener(SoundListener) - Method in class ch.aplu.nxt.SoundSensor
Registers the given sound listener with default trigger level 50.
addTouchListener(TouchListener) - Method in class ch.aplu.nxt.TouchSensor
Registers the given touch listener.
addUltrasonicListener(UltrasonicListener, int) - Method in class ch.aplu.nxt.UltrasonicSensor
Registers the given ultrasonic listener for the given trigger level.
addUltrasonicListener(UltrasonicListener) - Method in class ch.aplu.nxt.UltrasonicSensor
Registers the given ultrasonic listener with default trigger level 20.
ainChanged(SensorPort, int[]) - Method in class ch.aplu.nxt.PrototypeAdapter
Empty method called when at least one of the 5 analog inputs changed its value.
ainChanged(SensorPort, int[]) - Method in interface ch.aplu.nxt.PrototypeListener
Called when at least one of the 5 analog inputs changed its value.
ANGLE - Static variable in interface ch.aplu.nxt.SharedConstants
 
ANGLESTEPSMODE - Static variable in interface ch.aplu.nxt.SharedConstants
 

B

B - Static variable in class ch.aplu.nxt.MotorPort
Declaration used by a motor connected to port B.
backward() - Method in class ch.aplu.nxt.Gear
Same as forward(), but move in reverse direction.
backward(int) - Method in class ch.aplu.nxt.Gear
Same as forward(int duration), but move in reverse direction.
backward() - Method in class ch.aplu.nxt.Motor
Starts the backward rotation with preset speed.
backward(int) - Method in class ch.aplu.nxt.TurtleRobot
Moves the turtle backward the given number of steps.
BOOLEANMODE - Static variable in interface ch.aplu.nxt.SharedConstants
 
BOOT - Static variable in interface ch.aplu.nxt.SharedConstants
 
box - Static variable in class ch.aplu.nxt.RobotContext
Box obstacle.
BRAKE - Static variable in interface ch.aplu.nxt.SharedConstants
 
BrickButton - Interface in ch.aplu.nxt
Interface to define constants for the brick buttons.
bright(SensorPort, int) - Method in class ch.aplu.nxt.LightAdapter
Empty method called when the light becomes brighter than the trigger level.
bright(SensorPort, int) - Method in interface ch.aplu.nxt.LightListener
Called when the light becomes brighter than the trigger level.

C

C - Static variable in class ch.aplu.nxt.MotorPort
Declaration used by a motor connected to port C.
CELSIUSMODE - Static variable in interface ch.aplu.nxt.SharedConstants
 
ch.aplu.nxt - package ch.aplu.nxt
Package for commanding the Lego robot brick via a Bluetooth link.
channel - Static variable in class ch.aplu.nxt.RobotContext
Channel obstacle.
clearDisplay() - Method in class ch.aplu.nxt.LegoRobot
Clears the display.
CLOSE - Static variable in interface ch.aplu.nxt.SharedConstants
 
CompassAdapter - Class in ch.aplu.nxt
Class with empty callback methods for the compass sensor.
CompassAdapter() - Constructor for class ch.aplu.nxt.CompassAdapter
 
CompassListener - Interface in ch.aplu.nxt
Class with declarations of callback methods for the compass sensor.
CompassSensor - Class in ch.aplu.nxt
Class that represents an Compass sensor.
CompassSensor(SensorPort, boolean) - Constructor for class ch.aplu.nxt.CompassSensor
Creates a sensor instance connected to the given port at location with either 50 Hz or 60 Hz household current frequency.
CompassSensor(SensorPort) - Constructor for class ch.aplu.nxt.CompassSensor
Creates a sensor instance connected to the given port at location with 50 Hz household current frequency (e.g.
CompassSensor() - Constructor for class ch.aplu.nxt.CompassSensor
Creates a sensor instance connected to port S1 at location with 50 Hz household current frequency (e.g.
connect() - Method in class ch.aplu.nxt.LegoRobot
Connects the host to the robot via Bluetooth.
connect(boolean) - Method in class ch.aplu.nxt.LegoRobot
Connects the host to the robot via Bluetooth.
connect(boolean, boolean) - Method in class ch.aplu.nxt.LegoRobot
Connects the host to the robot via Bluetooth.
ConnectPane - Class in ch.aplu.nxt
Class to display a text in a modeless dialog (J2SE) or a form (J2ME).
continueRelativeTo(int) - Method in class ch.aplu.nxt.Motor
Same as rotateTo(int count), but the rotation counter is not set to zero.
continueRelativeTo(int, boolean) - Method in class ch.aplu.nxt.Motor
Same as rotateTo(int count, boolean blocking), but the rotation counter is not set to zero.
continueTo(int) - Method in class ch.aplu.nxt.Motor
Same as rotateTo(int count), but the rotation counter is not set to zero.
continueTo(int, boolean) - Method in class ch.aplu.nxt.Motor
Same as rotateTo(int count, boolean blocking), but the rotation counter is not set to zero.
CUSTOM - Static variable in interface ch.aplu.nxt.SharedConstants
 

D

dark(SensorPort, int) - Method in class ch.aplu.nxt.LightAdapter
Empty method called when the light becomes darker than the trigger level.
dark(SensorPort, int) - Method in interface ch.aplu.nxt.LightListener
Called when the light becomes darker than the trigger level.
DEBUG_LEVEL_HIGH - Static variable in interface ch.aplu.nxt.SharedConstants
 
DEBUG_LEVEL_LOW - Static variable in interface ch.aplu.nxt.SharedConstants
 
DEBUG_LEVEL_MEDIUM - Static variable in interface ch.aplu.nxt.SharedConstants
 
DEBUG_LEVEL_OFF - Static variable in interface ch.aplu.nxt.SharedConstants
 
delay(long) - Static method in class ch.aplu.nxt.Tools
Suspends execution of the current thread for the given amount of time.
DELETE - Static variable in interface ch.aplu.nxt.SharedConstants
 
DELETE_USER_FLASH - Static variable in interface ch.aplu.nxt.SharedConstants
 
dinChanged(SensorPort, int[]) - Method in class ch.aplu.nxt.PrototypeAdapter
Empty method called when at least one of the digital inputs changed its value.
dinChanged(SensorPort, int[]) - Method in interface ch.aplu.nxt.PrototypeListener
Called when at least one of the digital inputs changed its value.
DIRECT_COMMAND_NOREPLY - Static variable in interface ch.aplu.nxt.SharedConstants
 
DIRECT_COMMAND_REPLY - Static variable in interface ch.aplu.nxt.SharedConstants
 
disconnect() - Method in class ch.aplu.nxt.LegoRobot
Closes the Bluetooth communication.
drawString(String, int, int) - Method in class ch.aplu.nxt.LegoRobot
Draws the given text line starting at given position.
drawStringAt(String, int) - Method in class ch.aplu.nxt.LegoRobot
Draws the given text line starting at given screen cell count.

E

eraseBeamArea() - Method in class ch.aplu.nxt.UltrasonicSensor
Erases the beam area (if it is currently shown).
exit() - Method in class ch.aplu.nxt.LegoRobot
Closes the connection dialog and any open QuitPane, disconnects the Bluetooth communication and terminates the program.
exit() - Method in class ch.aplu.nxt.TurtleRobot
Closes the Bluetooth communication and terminates the program.

F

FAHRENHEITMODE - Static variable in interface ch.aplu.nxt.SharedConstants
 
far(SensorPort, int) - Method in class ch.aplu.nxt.UltrasonicAdapter
Empty method called when the distance exceeds the trigger level.
far(SensorPort, int) - Method in interface ch.aplu.nxt.UltrasonicListener
Called when the distance exceeds the trigger level.
fileExists(String) - Method in class ch.aplu.nxt.LegoRobot
Searches for given file in the brick's file system.
fileHandle - Variable in class ch.aplu.nxt.FileInfo
The handle for accessing the file.
FileInfo - Class in ch.aplu.nxt
Structure that gives information about a leJOS NXJ file.
FileInfo(String) - Constructor for class ch.aplu.nxt.FileInfo
Constructs a FileInfo instance with given file name.
fileName - Variable in class ch.aplu.nxt.FileInfo
The name of the file - up to 20 characters.
fileSize - Variable in class ch.aplu.nxt.FileInfo
The size of the file in bytes.
FIND_FIRST - Static variable in interface ch.aplu.nxt.SharedConstants
 
FIND_NEXT - Static variable in interface ch.aplu.nxt.SharedConstants
 
findFirst() - Method in class ch.aplu.nxt.LegoRobot
Start file enumeration in the brick's file system.
findNext(byte) - Method in class ch.aplu.nxt.LegoRobot
Searches the next file in a file enumeration.
forward() - Method in class ch.aplu.nxt.Gear
Starts the forward movement with preset speed.
forward(int) - Method in class ch.aplu.nxt.Gear
Starts the forward movement for the given duration (in ms) with preset speed.
forward() - Method in class ch.aplu.nxt.Motor
Starts the forward rotation with preset speed.
forward(int) - Method in class ch.aplu.nxt.TurtleRobot
Moves the turtle forward the given number of steps.

G

Gear - Class in ch.aplu.nxt
Combines two motors on an axis to perform a car-like movement.
Gear(MotorPort, MotorPort) - Constructor for class ch.aplu.nxt.Gear
Creates a gear instance with right motor plugged into port1, left motor plugged into port2.
Gear() - Constructor for class ch.aplu.nxt.Gear
Creates a gear instance with left motor plugged into port A, right motor plugged into port B.
GET_BATTERY_LEVEL - Static variable in interface ch.aplu.nxt.SharedConstants
 
GET_CURRENT_PROGRAM_NAME - Static variable in interface ch.aplu.nxt.SharedConstants
 
GET_DEVICE_INFO - Static variable in interface ch.aplu.nxt.SharedConstants
 
GET_FIRMWARE_VERSION - Static variable in interface ch.aplu.nxt.SharedConstants
 
GET_INPUT_VALUES - Static variable in interface ch.aplu.nxt.SharedConstants
 
GET_OUTPUT_STATE - Static variable in interface ch.aplu.nxt.SharedConstants
 
getAbout() - Static method in class ch.aplu.nxt.LegoRobot
Returns copywrite information.
getBatteryLevel() - Method in class ch.aplu.nxt.LegoRobot
Returns the battery level.
getBtAddress() - Method in class ch.aplu.nxt.LegoRobot
Returns the Bluetooth address (hex).
getBtAddressLong() - Method in class ch.aplu.nxt.LegoRobot
Returns the Bluetooth address (long).
getBtName() - Method in class ch.aplu.nxt.LegoRobot
Returns the Bluetooth name
getData(byte, int) - Method in class ch.aplu.nxt.CompassSensor
Overrides I2CSensor.getData() because of unreliability when retrieving more than a single byte at a time with some I2C sensors.
getData(byte, int) - Method in class ch.aplu.nxt.I2CSensor
Retrieves data from the sensor.
getDebugLevel() - Static method in class ch.aplu.nxt.LegoRobot
Returns the current debug level.
getDegrees() - Method in class ch.aplu.nxt.CompassSensor
Polls the sensor.
getDistance() - Method in class ch.aplu.nxt.UltrasonicSensor
Polls the sensor.
getFriendlyName() - Method in class ch.aplu.nxt.LegoRobot
Sends a request to the brick to get the Bluetooth friendly name.
getGear() - Method in class ch.aplu.nxt.TurtleRobot
Returns the gear used as component of the turtle.
getHitButtonID() - Method in class ch.aplu.nxt.LegoRobot
Returns the button ID of the button previously hit.
getId() - Method in class ch.aplu.nxt.SensorPort
Return the port id (0 for S1, 1 for S2, 2 for S3, 3 for S4).
getInputStream() - Method in class ch.aplu.nxt.LegoRobot
Returns the InputStream reference of the Bluetooth connection.
getLabel() - Method in class ch.aplu.nxt.SensorPort
Return the port label S1, S2, S3, S4.
getMotLeft() - Method in class ch.aplu.nxt.Gear
Returns left motor of the gear.
getMotorCount() - Method in class ch.aplu.nxt.Motor
Returns current value of the rotation counter.
getMotRight() - Method in class ch.aplu.nxt.Gear
Returns right motor of the gear.
getOutputStream() - Method in class ch.aplu.nxt.LegoRobot
Returns the OutputStream reference of the Bluetooth connection.
getPortId() - Method in class ch.aplu.nxt.Motor
Returns the port number.
getPortLabel() - Method in class ch.aplu.nxt.Motor
Returns the port label.
getProductID() - Method in class ch.aplu.nxt.I2CSensor
Returns the Product ID as a string.
getProperties() - Static method in class ch.aplu.nxt.LegoRobot
Returns the properties from the NxtJLib property file.
getSensorType() - Method in class ch.aplu.nxt.I2CSensor
Returns the type of sensor as a string.
getSpeed() - Method in class ch.aplu.nxt.Gear
Returns the current speed (arbitrary units).
getSpeed() - Method in class ch.aplu.nxt.Motor
Returns the current speed (arbitrary units).
getStreamConnection() - Method in class ch.aplu.nxt.LegoRobot
Returns the StreamConnection reference of the Bluetooth connection.
getTime() - Static method in class ch.aplu.nxt.Tools
Gets the timer's time.
getTurtleSpeed() - Method in class ch.aplu.nxt.TurtleRobot
Returns the current turtle speed.
getValue() - Method in class ch.aplu.nxt.LightSensor
Polls the sensor.
getValue() - Method in class ch.aplu.nxt.SoundSensor
Polls the sensor.
getVelocity() - Method in class ch.aplu.nxt.Gear
Returns the current velocity.
getVelocity() - Method in class ch.aplu.nxt.Motor
Returns the current velocity.
getVersion() - Method in class ch.aplu.nxt.I2CSensor
Returns the version number of the sensor hardware.
getVersion() - Static method in class ch.aplu.nxt.LegoRobot
Returns library version information.
GGBitmap - Class in ch.aplu.nxt
Dummy class for source code compatibility with NxtSim.
GGBitmap() - Constructor for class ch.aplu.nxt.GGBitmap
 

H

HIGH_SPEED_BUFFER - Static variable in interface ch.aplu.nxt.SharedConstants
 

I

I2CSensor - Class in ch.aplu.nxt
A sensor wrapper to allow easy access to I2C sensors, like the ultrasonic sensor.
I2CSensor(SensorPort, byte) - Constructor for class ch.aplu.nxt.I2CSensor
Creates a sensor instance of given type connected to the given port.
ID_DOWN - Static variable in interface ch.aplu.nxt.BrickButton
Constant for the DOWN button.
ID_ENTER - Static variable in interface ch.aplu.nxt.BrickButton
Constant for the ENTER button.
ID_ESCAPE - Static variable in interface ch.aplu.nxt.BrickButton
Constant for the ESCAPE button.
ID_LEFT - Static variable in interface ch.aplu.nxt.BrickButton
Constant for the LEFT button.
ID_RIGHT - Static variable in interface ch.aplu.nxt.BrickButton
Constant for the RIGHT button.
ID_UP - Static variable in interface ch.aplu.nxt.BrickButton
Constant for the UP button.
init() - Static method in class ch.aplu.nxt.RobotContext
Initializes the static context.
isButtonHit() - Method in class ch.aplu.nxt.LegoRobot
Returns true, if any of the buttons was hit.
isButtonListenerRunning() - Method in class ch.aplu.nxt.LegoRobot
Returns the current state of the button listener thread.
isConnected() - Method in class ch.aplu.nxt.LegoRobot
Returns the connection state.
isConnecting - Static variable in class ch.aplu.nxt.LegoRobot
 
isDownHit() - Method in class ch.aplu.nxt.LegoRobot
Returns true, if the DOWN button was the last button hit since the last call of this method.
isEnterHit() - Method in class ch.aplu.nxt.LegoRobot
Returns true, if the ENTER button was the last button hit since the last call of this method.
isEscapeHit() - Method in class ch.aplu.nxt.LegoRobot
Returns true, if the ESCAPE button was the last button hit since the last call of this method.
isLeftHit() - Method in class ch.aplu.nxt.LegoRobot
Returns true, if the LEFT button was the last button hit since the last call of this method.
isMoving() - Method in class ch.aplu.nxt.Gear
Checks if one or both motors are rotating.
isMoving() - Method in class ch.aplu.nxt.Motor
Checks if the motor is rotating.
isPressed() - Method in class ch.aplu.nxt.TouchSensor
Polls the sensor.
isRightHit() - Method in class ch.aplu.nxt.LegoRobot
Returns true, if the RIGHT button was the last button hit since the last call of this method.
isRunning() - Method in class ch.aplu.nxt.LegoRobot
Returns true as long as exit() is not called and the close button of the Connection Pane is not hit.
isUpHit() - Method in class ch.aplu.nxt.LegoRobot
Returns true, if the UP button was the last button hit since the last call of this method.

K

KEEP_ALIVE - Static variable in interface ch.aplu.nxt.SharedConstants
 
keepAlive() - Method in class ch.aplu.nxt.LegoRobot
Sends a keep alive command to prevent the automatic shutdown of the brick.

L

left() - Method in class ch.aplu.nxt.Gear
Starts turning left with left motor stopped and right motor at preset speed.
left(int) - Method in class ch.aplu.nxt.Gear
Starts turning left for the given duration (in ms) with preset speed.
left(int) - Method in class ch.aplu.nxt.TurtleRobot
Turns the turtle to the left for the given angle.
leftArc(double) - Method in class ch.aplu.nxt.Gear
Starts turning to the left on an arc with given radius (in m).
leftArc(double, int) - Method in class ch.aplu.nxt.Gear
Starts turning to the left on an arc with given radius (in m) for the given duration (in ms) with preset speed.
LegoRobot - Class in ch.aplu.nxt
Class that represents a NXT robot brick.
LegoRobot(String, boolean) - Constructor for class ch.aplu.nxt.LegoRobot
Creates a LegoRobot instance with given Bluetooth name.
LegoRobot(String) - Constructor for class ch.aplu.nxt.LegoRobot
Creates a LegoRobot instance with given Bluetooth name.
LegoRobot(long, boolean) - Constructor for class ch.aplu.nxt.LegoRobot
Creates a LegoRobot instance with given Bluetooth address.
LegoRobot(long) - Constructor for class ch.aplu.nxt.LegoRobot
Creates a LegoRobot instance with given Bluetooth address.
LegoRobot() - Constructor for class ch.aplu.nxt.LegoRobot
Asks for the Bluetooth name and creates a LegoRobot instance.
LegoRobot.ClosingMode - Enum in ch.aplu.nxt
Modes to determine what happens when the title bar close button is hit.
LIGHT_ACTIVE - Static variable in interface ch.aplu.nxt.SharedConstants
 
LIGHT_INACTIVE - Static variable in interface ch.aplu.nxt.SharedConstants
 
LightAdapter - Class in ch.aplu.nxt
Class with empty callback methods for the light sensor.
LightAdapter() - Constructor for class ch.aplu.nxt.LightAdapter
 
LightListener - Interface in ch.aplu.nxt
Interface with declarations of callback methods for the light sensor.
LightSensor - Class in ch.aplu.nxt
Class that represents a light sensor.
LightSensor(SensorPort) - Constructor for class ch.aplu.nxt.LightSensor
Creates a sensor instance connected to the given port.
LightSensor() - Constructor for class ch.aplu.nxt.LightSensor
Creates a sensor instance connected to port S1.
loud(SensorPort, int) - Method in class ch.aplu.nxt.SoundAdapter
Empty method called when the sound becomes louder than the trigger level.
loud(SensorPort, int) - Method in interface ch.aplu.nxt.SoundListener
Called when the sound becomes louder than the trigger level.
LOWSPEED - Static variable in interface ch.aplu.nxt.SharedConstants
 
LOWSPEED_9V - Static variable in interface ch.aplu.nxt.SharedConstants
 
LS_GET_STATUS - Static variable in interface ch.aplu.nxt.SharedConstants
 
LS_READ - Static variable in interface ch.aplu.nxt.SharedConstants
 
LS_WRITE - Static variable in interface ch.aplu.nxt.SharedConstants
 

M

Main - Class in ch.aplu.nxt
Main contains a public static void main() entry point and is able to create an instance of another class (by Java reflection), so that its default contructor is invoked.
main(String[]) - Static method in class ch.aplu.nxt.Main
Program entry point.
MESSAGE_READ - Static variable in interface ch.aplu.nxt.SharedConstants
 
MESSAGE_WRITE - Static variable in interface ch.aplu.nxt.SharedConstants
 
MODEMASK - Static variable in interface ch.aplu.nxt.SharedConstants
 
MotionAdapter - Class in ch.aplu.nxt
Class with an empty declaration of a callback method when the movement stops.
MotionAdapter() - Constructor for class ch.aplu.nxt.MotionAdapter
 
MotionListener - Interface in ch.aplu.nxt
Class with a declaration of a callback method when the movement stops.
motionStopped() - Method in class ch.aplu.nxt.MotionAdapter
Empty method called when the movement stops.
motionStopped() - Method in interface ch.aplu.nxt.MotionListener
Called when the movement stops.
Motor - Class in ch.aplu.nxt
Class that represents one of the NXT motors.
Motor(MotorPort) - Constructor for class ch.aplu.nxt.Motor
Creates a motor instance that is plugged into given port.
MOTOR_RUN_STATE_IDLE - Static variable in interface ch.aplu.nxt.SharedConstants
 
MOTOR_RUN_STATE_RAMPDOWN - Static variable in interface ch.aplu.nxt.SharedConstants
 
MOTOR_RUN_STATE_RAMPUP - Static variable in interface ch.aplu.nxt.SharedConstants
 
MOTOR_RUN_STATE_RUNNING - Static variable in interface ch.aplu.nxt.SharedConstants
 
MOTORON - Static variable in interface ch.aplu.nxt.SharedConstants
 
MotorPort - Class in ch.aplu.nxt
Useful declarations for motor port connections.
moveTo(int, boolean) - Method in class ch.aplu.nxt.Gear
Sets the rotation counter to zero and rotate both motors until the given count is reached.
moveTo(int) - Method in class ch.aplu.nxt.Gear
Same as moveTo(int count, boolean blocking) with blocking = true.

N

near(SensorPort, int) - Method in class ch.aplu.nxt.UltrasonicAdapter
Empty method called when the distance falls below the trigger level.
near(SensorPort, int) - Method in interface ch.aplu.nxt.UltrasonicListener
Called when the distance falls below the trigger level.
NO_OF_SENSOR_TYPES - Static variable in interface ch.aplu.nxt.SharedConstants
 
NO_SENSOR - Static variable in interface ch.aplu.nxt.SharedConstants
 
NoMain - Annotation Type in ch.aplu.nxt
Annotation definition for applications with no public static void main() method.
NXJ_FIND_FIRST - Static variable in interface ch.aplu.nxt.SharedConstants
 
NXJ_FIND_NEXT - Static variable in interface ch.aplu.nxt.SharedConstants
 
NxtContext - Class in ch.aplu.nxt
Dummy class to make NxtJLib source compatible with NxtSim.
NxtContext() - Constructor for class ch.aplu.nxt.NxtContext
 
NxtRobot - Class in ch.aplu.nxt
Class that represents a NXT robot brick.
NxtRobot(String, boolean) - Constructor for class ch.aplu.nxt.NxtRobot
Creates a NxtRobot instance with given Bluetooth name.
NxtRobot(String) - Constructor for class ch.aplu.nxt.NxtRobot
Creates a NxtRobot instance with given Bluetooth name.
NxtRobot(long, boolean) - Constructor for class ch.aplu.nxt.NxtRobot
Creates a NxtRobot instance with given Bluetooth address.
NxtRobot(long) - Constructor for class ch.aplu.nxt.NxtRobot
Creates a NxtRobot instance with given Bluetooth address.
NxtRobot() - Constructor for class ch.aplu.nxt.NxtRobot
Asks for the Bluetooth name and creates a NxtRobot instance.

O

Obstacle - Class in ch.aplu.nxt
Dummy class to make NxtJLib source compatible with NxtSim.
Obstacle(String) - Constructor for class ch.aplu.nxt.Obstacle
Creates an obstacle from given image file.
OPEN_APPEND_DATA - Static variable in interface ch.aplu.nxt.SharedConstants
 
OPEN_READ - Static variable in interface ch.aplu.nxt.SharedConstants
 
OPEN_READ_LINEAR - Static variable in interface ch.aplu.nxt.SharedConstants
 
OPEN_WRITE - Static variable in interface ch.aplu.nxt.SharedConstants
 
OPEN_WRITE_DATA - Static variable in interface ch.aplu.nxt.SharedConstants
 
OPEN_WRITE_LINEAR - Static variable in interface ch.aplu.nxt.SharedConstants
 

P

PackageInfo - Class in ch.aplu.nxt
Class to provide the current package version.
PackageInfo() - Constructor for class ch.aplu.nxt.PackageInfo
 
Part - Class in ch.aplu.nxt
Abstract class as ancestor of all parts.
Part() - Constructor for class ch.aplu.nxt.Part
 
PCTFULLSCALEMODE - Static variable in interface ch.aplu.nxt.SharedConstants
 
PERIODCOUNTERMODE - Static variable in interface ch.aplu.nxt.SharedConstants
 
PLAY_SOUND_FILE - Static variable in interface ch.aplu.nxt.SharedConstants
 
PLAY_TONE - Static variable in interface ch.aplu.nxt.SharedConstants
 
playConnectMelody() - Method in class ch.aplu.nxt.LegoRobot
Plays a standard connect melody.
playDisconnectMelody() - Method in class ch.aplu.nxt.LegoRobot
Plays a standard disconnect melody.
playTone(int, int) - Method in class ch.aplu.nxt.LegoRobot
Plays a tone with given frequency (in Hertz) and duration (in seconds).
POLL - Static variable in interface ch.aplu.nxt.SharedConstants
 
POLL_BUFFER - Static variable in interface ch.aplu.nxt.SharedConstants
 
POLL_LENGTH - Static variable in interface ch.aplu.nxt.SharedConstants
 
pressed(SensorPort) - Method in class ch.aplu.nxt.TouchAdapter
Empty method called when the touch sensor is pressed.
pressed(SensorPort) - Method in interface ch.aplu.nxt.TouchListener
Called when the touch sensor is pressed.
PrototypeAdapter - Class in ch.aplu.nxt
Class with empty callback methods for the prototype sensor.
PrototypeAdapter() - Constructor for class ch.aplu.nxt.PrototypeAdapter
 
PrototypeListener - Interface in ch.aplu.nxt
Class with declarations of callback methods for the prototype sensor.
PrototypeSensor - Class in ch.aplu.nxt
Class that represents a prototype sensor (HiTechnic NXT Prototyping Board).
PrototypeSensor(SensorPort) - Constructor for class ch.aplu.nxt.PrototypeSensor
Creates a sensor instance connected to the given port.
PrototypeSensor() - Constructor for class ch.aplu.nxt.PrototypeSensor
Creates a sensor instance connected to port S1.

Q

quiet(SensorPort, int) - Method in class ch.aplu.nxt.SoundAdapter
Empty method called when the sound becomes lower than the trigger level.
quiet(SensorPort, int) - Method in interface ch.aplu.nxt.SoundListener
Called when the sound becomes lower than the trigger level.

R

RAWMODE - Static variable in interface ch.aplu.nxt.SharedConstants
 
read(int[], int[]) - Method in class ch.aplu.nxt.PrototypeSensor
Reads the sensor.
READ - Static variable in interface ch.aplu.nxt.SharedConstants
 
readAnalog(int[]) - Method in class ch.aplu.nxt.PrototypeSensor
Reads the sensor.
readData() - Method in class ch.aplu.nxt.LegoRobot
Reads the data returned as a reply from the brick.
readDigital(int[]) - Method in class ch.aplu.nxt.PrototypeSensor
Reads the sensor.
REFLECTION - Static variable in interface ch.aplu.nxt.SharedConstants
 
REGULATED - Static variable in interface ch.aplu.nxt.SharedConstants
 
REGULATION_MODE_IDLE - Static variable in interface ch.aplu.nxt.SharedConstants
 
REGULATION_MODE_MOTOR_SPEED - Static variable in interface ch.aplu.nxt.SharedConstants
 
REGULATION_MODE_MOTOR_SYNC - Static variable in interface ch.aplu.nxt.SharedConstants
 
released(SensorPort) - Method in class ch.aplu.nxt.TouchAdapter
Empty method called when the touch sensor is released.
released(SensorPort) - Method in interface ch.aplu.nxt.TouchListener
Called when the touch sensor is released.
REPLY_COMMAND - Static variable in interface ch.aplu.nxt.SharedConstants
 
requestData(byte[]) - Method in class ch.aplu.nxt.LegoRobot
Combines sendData() and readData() in synchronized block.
reset() - Method in class ch.aplu.nxt.LegoRobot
Resets Nxt to start location/direction.
RESET_MOTOR_POSITION - Static variable in interface ch.aplu.nxt.SharedConstants
 
RESET_SCALED_INPUT_VALUE - Static variable in interface ch.aplu.nxt.SharedConstants
 
resetMotorCount() - Method in class ch.aplu.nxt.Motor
Resets the rotation counter to zero.
right() - Method in class ch.aplu.nxt.Gear
Same as left(), but turns in the opposite direction.
right(int) - Method in class ch.aplu.nxt.Gear
Same as left(int duration), but turning in the opposite direction.
right(int) - Method in class ch.aplu.nxt.TurtleRobot
Turns the turtle to the right for the given angle.
rightArc(double) - Method in class ch.aplu.nxt.Gear
Same as leftArc(double radius), but turns in the right.
rightArc(double, int) - Method in class ch.aplu.nxt.Gear
Same as leftArc(double radius, int duration), but turns to the right.
RobotContext - Class in ch.aplu.nxt
Dummy class to make NxtJLib source compatible with NxtSim.
rotateTo(int) - Method in class ch.aplu.nxt.Motor
Sets the rotation counter to zero and rotates the motor until the given count is reached.
rotateTo(int, boolean) - Method in class ch.aplu.nxt.Motor
Sets the rotation counter to zero and rotates the motor until the given count is reached.

S

S1 - Static variable in class ch.aplu.nxt.SensorPort
Declaration used by a sensor connected to port S1.
S2 - Static variable in class ch.aplu.nxt.SensorPort
Declaration used by a sensor connected to port S2.
S3 - Static variable in class ch.aplu.nxt.SensorPort
Declaration used by a sensor connected to port S3.
S4 - Static variable in class ch.aplu.nxt.SensorPort
Declaration used by a sensor connected to port S4.
sendData(byte, byte) - Method in class ch.aplu.nxt.I2CSensor
Sets a single byte in the I2C sensor.
sendData(byte, byte, byte) - Method in class ch.aplu.nxt.I2CSensor
Sets two consecutive bytes in the I2C sensor.
sendData(byte[]) - Method in class ch.aplu.nxt.LegoRobot
Sends a direct command to the brick.
Sensor - Class in ch.aplu.nxt
Abstract class as ancestor of all sensors.
SensorPort - Class in ch.aplu.nxt
Useful declarations for sensor port connections.
SET_BRICK_NAME - Static variable in interface ch.aplu.nxt.SharedConstants
 
SET_INPUT_MODE - Static variable in interface ch.aplu.nxt.SharedConstants
 
SET_OUTPUT_STATE - Static variable in interface ch.aplu.nxt.SharedConstants
 
setBeamAreaColor(Color) - Method in class ch.aplu.nxt.UltrasonicSensor
Sets the color of the beam area (two sector border lines and axis).
setChannel(int) - Method in class ch.aplu.nxt.LegoRobot
Sets the Bluetooth channel (default: 1).
setDIO(int[]) - Method in class ch.aplu.nxt.PrototypeSensor
Sets the direction of the 6 digital input/output channels.
setLocation(int, int) - Static method in class ch.aplu.nxt.RobotContext
Sets the location of the playground (pixel coordinates of the upper left vertex).
setMeshTriangleColor(Color) - Method in class ch.aplu.nxt.UltrasonicSensor
Sets the color of the triangle mesh lines.
setProximityCircleColor(Color) - Method in class ch.aplu.nxt.UltrasonicSensor
Sets the color of the circle with center at sensor location and radius equals to the current distance value.
setSamplingPeriod(int) - Method in class ch.aplu.nxt.PrototypeSensor
Sets the sampling period of the ADC (4..100 ms, default 4 ms).
setSpeed(int) - Method in class ch.aplu.nxt.Gear
Sets the speed to the given value (arbitrary units).
setSpeed(int) - Method in class ch.aplu.nxt.Motor
Sets the speed to the given value (arbitrary units).
setSpeedFactor(double) - Method in class ch.aplu.nxt.Motor
Sets the motor speed factor to given value.
setStartDirection(double) - Static method in class ch.aplu.nxt.RobotContext
Sets the Nxt starting direction (zero to EAST).
setStartPosition(int, int) - Static method in class ch.aplu.nxt.RobotContext
Sets the Nxt starting position (x-y-coordinates 0..500, origin at upper left).
setStatusText(String) - Static method in class ch.aplu.nxt.RobotContext
Displays the given text in the status bar (if available).
setTriggerLevel(int) - Method in class ch.aplu.nxt.CompassSensor
Sets a new trigger level and returns the previous one.
setTriggerLevel(int) - Method in class ch.aplu.nxt.LightSensor
Sets a new trigger level and returns the previous one.
setTriggerLevel(int) - Method in class ch.aplu.nxt.SoundSensor
Sets a new trigger level and returns the previous one.
setTriggerLevel(int) - Method in class ch.aplu.nxt.UltrasonicSensor
Sets a new trigger level and returns the previous one.
setTurtleSpeed(int) - Method in class ch.aplu.nxt.TurtleRobot
Sets the turtle speed to the given value.
setVelocity(double) - Method in class ch.aplu.nxt.Gear
Sets the velocity to the given value.
setVelocity(double) - Method in class ch.aplu.nxt.Motor
Sets the velocity to the given value.
SharedConstants - Interface in ch.aplu.nxt
 
show() - Method in class ch.aplu.nxt.FileInfo
Show all file information in the debug console.
showStatusBar(int) - Static method in class ch.aplu.nxt.RobotContext
Shows a status bar with given height.
showText(String) - Static method in class ch.aplu.nxt.ConnectPane
Show the dialog (J2SE) or the form (J2ME) and display the given text.
SLOPEMASK - Static variable in interface ch.aplu.nxt.SharedConstants
 
SOUND_DB - Static variable in interface ch.aplu.nxt.SharedConstants
 
SOUND_DBA - Static variable in interface ch.aplu.nxt.SharedConstants
 
SoundAdapter - Class in ch.aplu.nxt
Class with empty callback methods for the sound sensor.
SoundAdapter() - Constructor for class ch.aplu.nxt.SoundAdapter
 
SoundListener - Interface in ch.aplu.nxt
Class with declaration of callback methods for the sound sensor.
SoundSensor - Class in ch.aplu.nxt
Class that represents a sound sensor.
SoundSensor(SensorPort) - Constructor for class ch.aplu.nxt.SoundSensor
Creates a sensor instance connected to the given port.
SoundSensor() - Constructor for class ch.aplu.nxt.SoundSensor
Creates a sensor instance connected to port S1.
speedToVelocity(int) - Method in class ch.aplu.nxt.Motor
Conversion from speed to velocity.
START_PROGRAM - Static variable in interface ch.aplu.nxt.SharedConstants
 
startButtonListener() - Method in class ch.aplu.nxt.LegoRobot
Starts a button listener to get button hit events.
startCalibration() - Method in class ch.aplu.nxt.CompassSensor
Starts calibration process.
startPage - Variable in class ch.aplu.nxt.FileInfo
The start page of the file in flash memory.
startProgram(String) - Method in class ch.aplu.nxt.LegoRobot
 
startTimer() - Static method in class ch.aplu.nxt.Tools
Starts a timer or restart it by setting its time to zero.
status - Variable in class ch.aplu.nxt.FileInfo
The status of the file - not used.
stop() - Method in class ch.aplu.nxt.Gear
Stops the gear.
stop() - Method in class ch.aplu.nxt.Motor
Stops the motor.
STOP_PROGRAM - Static variable in interface ch.aplu.nxt.SharedConstants
 
STOP_SOUND_PLAYBACK - Static variable in interface ch.aplu.nxt.SharedConstants
 
stopButtonListener() - Method in class ch.aplu.nxt.LegoRobot
Stops the button listener and disables button hit events.
stopCalibration() - Method in class ch.aplu.nxt.CompassSensor
Stops calibration process.
SWITCH - Static variable in interface ch.aplu.nxt.SharedConstants
 
SYSTEM_COMMAND_NOREPLY - Static variable in interface ch.aplu.nxt.SharedConstants
 
SYSTEM_COMMAND_REPLY - Static variable in interface ch.aplu.nxt.SharedConstants
 

T

Target - Class in ch.aplu.nxt
Dummy class for source code compatibility with NxtSim.
Target() - Constructor for class ch.aplu.nxt.Target
 
TEMPERATURE - Static variable in interface ch.aplu.nxt.SharedConstants
 
TITLE - Static variable in interface ch.aplu.nxt.SharedConstants
 
TITLEMP - Static variable in interface ch.aplu.nxt.SharedConstants
 
toLeft(SensorPort, double) - Method in class ch.aplu.nxt.CompassAdapter
Empty method called when the compass reading points to a direction at the left half-plane of the trigger direction.
toLeft(SensorPort, double) - Method in interface ch.aplu.nxt.CompassListener
Called when the compass reading points to a direction at the left half-plane of the trigger direction.
Tools - Class in ch.aplu.nxt
Some useful helper methods.
Tools() - Constructor for class ch.aplu.nxt.Tools
 
toRight(SensorPort, double) - Method in class ch.aplu.nxt.CompassAdapter
Empty method called when the compass reading points to a direction at the right half-plane of the trigger direction.
toRight(SensorPort, double) - Method in interface ch.aplu.nxt.CompassListener
Called when the compass reading points to a direction at the right half-plane of the trigger direction.
TouchAdapter - Class in ch.aplu.nxt
Class with empty callback methods for the touch sensor.
TouchAdapter() - Constructor for class ch.aplu.nxt.TouchAdapter
 
TouchListener - Interface in ch.aplu.nxt
Interface with declarations of callback methods for the touch sensor.
TouchSensor - Class in ch.aplu.nxt
Class that represents a touch sensor.
TouchSensor(SensorPort) - Constructor for class ch.aplu.nxt.TouchSensor
Creates a sensor instance connected to the given port.
TouchSensor() - Constructor for class ch.aplu.nxt.TouchSensor
Creates a sensor instance connected to port S1.
TRANSITIONCNTMODE - Static variable in interface ch.aplu.nxt.SharedConstants
 
turnTo(int) - Method in class ch.aplu.nxt.Gear
Same as turnTo(int count, boolean blocking) with blocking = true.
turnTo(int, boolean) - Method in class ch.aplu.nxt.Gear
Sets the rotation counter to zero and turn with the motors running in opposite direction.
TurtleCrawler - Class in ch.aplu.nxt
 
TurtleCrawler(String, boolean) - Constructor for class ch.aplu.nxt.TurtleCrawler
Creates a turtle crawler instance using a NXT brick with given Bluetooth name.
TurtleCrawler(String) - Constructor for class ch.aplu.nxt.TurtleCrawler
Same as TurtleCrawler(btName, true)
TurtleCrawler() - Constructor for class ch.aplu.nxt.TurtleCrawler
Same as TurtleCrawler(btName), but ask for Bluetooth name
TurtleCrawler(long, boolean) - Constructor for class ch.aplu.nxt.TurtleCrawler
Same as TurtleCrawler(btName, showPane), but Bluetooth address given.
TurtleCrawler(long) - Constructor for class ch.aplu.nxt.TurtleCrawler
Same as TurtleCrawler(address, true)
TurtleRobot - Class in ch.aplu.nxt
Implementation of the basic Logo turtle movements.
TurtleRobot(String, boolean) - Constructor for class ch.aplu.nxt.TurtleRobot
Creates a turtle robot instance using a NXT brick with given Bluetooth name.
TurtleRobot(String) - Constructor for class ch.aplu.nxt.TurtleRobot
Same as TurtleRobot(btName, true)
TurtleRobot() - Constructor for class ch.aplu.nxt.TurtleRobot
Same as TurtleRobot(btName), but ask for Bluetooth name
TurtleRobot(long, boolean) - Constructor for class ch.aplu.nxt.TurtleRobot
Same as TurtleRobot(btName, showPane), but Bluetooth address given.
TurtleRobot(long) - Constructor for class ch.aplu.nxt.TurtleRobot
Same as TurtleRobot(address, true)

U

UltrasonicAdapter - Class in ch.aplu.nxt
Class with empty callback methods for the ultrasonic sensor.
UltrasonicAdapter() - Constructor for class ch.aplu.nxt.UltrasonicAdapter
 
UltrasonicListener - Interface in ch.aplu.nxt
Class with declarations of callback methods for the ultrasonic sensor.
UltrasonicSensor - Class in ch.aplu.nxt
Class that represents an ultrasonic sensor.
UltrasonicSensor(SensorPort) - Constructor for class ch.aplu.nxt.UltrasonicSensor
Creates a sensor instance connected to the given port.
UltrasonicSensor() - Constructor for class ch.aplu.nxt.UltrasonicSensor
Creates a sensor instance connected to port S1.
useBackground(String) - Static method in class ch.aplu.nxt.RobotContext
Use the give image as background (playground size 501 x 501).
useObstacle(String, int, int) - Static method in class ch.aplu.nxt.RobotContext
Defines the given sprite image to be used as touch obstacle.
useObstacle(BufferedImage, int, int) - Static method in class ch.aplu.nxt.RobotContext
Defines the given buffered image to be used as touch obstacle.
useObstacle(Obstacle, int, int) - Static method in class ch.aplu.nxt.RobotContext
Defines the given obstacle to be used as touch obstacle.
useObstacle(Obstacle) - Static method in class ch.aplu.nxt.RobotContext
Defines the given obstacle to be used as touch obstacle.
useObstacle(GGBitmap, int, int) - Static method in class ch.aplu.nxt.RobotContext
Defines the given GGBitmap to be used as touch obstacle.
useTarget(String, int[][], int, int) - Static method in class ch.aplu.nxt.RobotContext
Creates a target for the ultrasonic sensor using the given sprite image.
useTarget(String, Point[], int, int) - Static method in class ch.aplu.nxt.RobotContext
Creates a target for the ultrasonic sensor using the given sprite image.
useTarget(BufferedImage, Point[], int, int) - Static method in class ch.aplu.nxt.RobotContext
Creates a target for the ultrasonic sensor using the given buffered image.
useTarget(GGBitmap, Point[], int, int) - Static method in class ch.aplu.nxt.RobotContext
Creates a target for the ultrasonic sensor using the given GGBitmap.
useTarget(Target, int, int) - Static method in class ch.aplu.nxt.RobotContext
Defines a clone of the given target to be used as target.

V

valueOf(String) - Static method in enum ch.aplu.nxt.LegoRobot.ClosingMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum ch.aplu.nxt.LegoRobot.ClosingMode
Returns an array containing the constants of this enum type, in the order they are declared.
velocityToSpeed(double) - Method in class ch.aplu.nxt.Motor
Conversion from velocity to speed.
VERSION - Static variable in class ch.aplu.nxt.PackageInfo
Current version of package.
VERSION - Static variable in interface ch.aplu.nxt.SharedConstants
 

W

write(int[]) - Method in class ch.aplu.nxt.PrototypeSensor
Writes the given bit state (low/high) to the digital output channels.
WRITE - Static variable in interface ch.aplu.nxt.SharedConstants
 
A B C D E F G H I K L M N O P Q R S T U V W