Deprecated API


Contents
Deprecated Classes
lejos.robotics.navigation.CompassPilot
          This class will disappear in NXJ version 1.0. Compass should be added to a PoseProvider. 
java.util.HashMap
          Current implementation is inefficient. Don't use it if your care about performance. Will be replaced with efficient implementation. 
java.util.HashSet
          Current implementation is inefficient. Don't use it if your care about performance. Will be replaced with efficient implementation. 
lejos.robotics.navigation.LegacyNavigator
          This class will disappear in NXJ version 1.0. Use a PathController instead. 
lejos.robotics.navigation.LegacyPilot
          This class will disappear in NXJ version 1.0. Use an implementing class of MoveController instead. 
 

Deprecated Fields
lejos.nxt.Button.BUTTONS
          this array will be removed 
java.lang.Integer.MAX_RADIX
          use constant in Character 
java.lang.Integer.MIN_RADIX
          use constant in Character 
lejos.nxt.SensorPort.PORTS
          use SensorPort.getInstance(int) instead. 
 

Deprecated Methods
lejos.nxt.addon.RCXLightSensor.activate()
          Use RCXLightSensor.setFloodlight(boolean) with true instead 
java.util.ArrayList.addAll(E[])
          not in JDK 
java.util.ArrayList.addAll(int, E[])
          not in JDK 
lejos.nxt.remote.NXTCommand.close()
          call disconnect, then close the underlying NXTComm 
java.lang.Integer.digit(char, int)
          use Character.digit(char, int) instead. 
java.lang.Integer.digit(int, int)
          use Character.digit(int, int) instead. 
java.lang.Object.finalize()
          not implemented in leJOS 
lejos.robotics.navigation.ArcAlgorithms.getArcOld(Point, Point, double)
          This method is no longer used because it can't calculate >180 angles. Delete any time. 
lejos.nxt.remote.RemoteMotor.getBlockTacho()
            
java.lang.String.getBytes(int, int, byte[], int)
            
lejos.robotics.navigation.LegacyPilot.getMoveMaxSpeed()
           
lejos.robotics.navigation.LegacyPilot.getMoveSpeed()
           
lejos.nxt.remote.RemoteMotor.getRotationCount()
            
lejos.nxt.addon.NXTLineLeader.getSensorStatus(int)
            
lejos.robotics.navigation.LegacyPilot.getTurnSpeed()
           
java.awt.Rectangle.inside(int, int)
           
lejos.nxt.Button.isPressed()
          use Button.isDown() instead. 
lejos.nxt.Button.loadSettings()
          replaced by Button.loadSystemSettings(). 
lejos.nxt.NXTRegulatedMotor.lock(int)
          The regulator will always try to hold position unless the motor is set into float mode using flt(). 
lejos.nxt.addon.RCXLightSensor.passivate()
          Use RCXLightSensor.setFloodlight(boolean) with false instead 
java.io.DataInputStream.readLine()
          broken in various ways, use BufferedReader.readLine instead 
lejos.nxt.addon.RCXLightSensor.readValue()
          Use RCXLightSensor.getLightValue() instead 
lejos.nxt.remote.RemoteMotor.resetBlockTacho()
            
java.awt.Rectangle.reshape(int, int, int, int)
           
java.awt.Rectangle.resize(int, int)
           
lejos.nxt.addon.NXTLineLeader.sendCommand(char)
          use NXTLineLeader.sendCommand(Command) instead 
lejos.nxt.I2CSensor.setAddress(int)
          If the device has a changeable address, then constructor of the class should have an address parameter. If not, please report a bug. 
lejos.robotics.navigation.LegacyPilot.setMoveSpeed(float)
           
lejos.robotics.navigation.OmniPilot.setSpeed(int)
          in 0.8, use setRotateSpeed() and setTravelSpeed(). The method was deprecated, as this it requires knowledge of the robots physical construction, which this interface should hide! 
lejos.robotics.navigation.LegacyPilot.setSpeed(int)
          in 0.8, use setRotateSpeed() and setTravelSpeed(). The method was deprecated, as this it requires knowledge of the robots physical construction, which this interface should hide! 
lejos.robotics.navigation.LegacyPilot.setTurnSpeed(float)
           
java.io.ByteArrayOutputStream.toString(int)
          use ByteArrayOutputStream.toString(String) instead 
java.lang.Enum.valueOf(Class, String)
          not implemented in leJOS 
 

Deprecated Constructors
java.util.ArrayList(E[])
          not in JDK 
java.io.BufferedWriter(OutputStream)
          use OutputStreamWriter instead. 
lejos.robotics.navigation.LegacyNavigator(float, float, RegulatedMotor, RegulatedMotor)
          The correct way is to create the Pilot in advance and to use that in construction of the LegacyNavigator. Otherwise the LegacyNavigator needs to know detail it should not care about! 
lejos.robotics.navigation.LegacyNavigator(float, float, RegulatedMotor, RegulatedMotor, boolean)
          The correct way is to create the Pilot in advance and to use that in construction of the LegacyNavigator. Otherwise the LegacyNavigator needs to know detail it should not care about! 
java.lang.String(byte[], int)
            
java.lang.String(byte[], int, int, int)