- 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
-
- 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
-
- 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.
- 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
-
- 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.
- 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
-
- 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.
- 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
-
- 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)
- 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.