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. 
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.robotics.navigation.DifferentialPilot._left
          Access to this field will be private in NXJ version 1.0 when the CompassPilot is removed. 
lejos.robotics.navigation.DifferentialPilot._leftDegPerDistance
          Access to this field will be private in NXJ version 1.0 when the CompassPilot is removed. 
lejos.robotics.navigation.DifferentialPilot._outside
          Access to this field will be private in NXJ version 1.0 when the CompassPilot is removed. 
lejos.robotics.navigation.DifferentialPilot._right
          Access to this field will be private in NXJ version 1.0 when the CompassPilot is removed. 
lejos.robotics.navigation.DifferentialPilot._rightDegPerDistance
          Access to this field will be private in NXJ version 1.0 when the CompassPilot is removed. 
lejos.robotics.navigation.DifferentialPilot._type
          Access to this field will be private in NXJ version 1.0 when the CompassPilot is 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 
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.DifferentialPilot.getAngleIncrement()
          Access to this method will be private in NXJ version 1.0 when the CompassPilot is removed and ArcNavigator sample will need to be updated to not use these methods. 
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.DifferentialPilot.getMovementIncrement()
          Access to this method will be private in NXJ version 1.0 when the CompassPilot is removed and ArcNavigator sample will need to be updated to not use these methods. 
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.NXTRegulatedMotor.lock(int)
          The regulator will always try to hold position unless the motor is set into float mode using flt(). 
lejos.robotics.navigation.DifferentialPilot.movementStart(boolean)
          Access to this method will be private in NXJ version 1.0 when the CompassPilot is removed. 
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.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)
           
lejos.robotics.navigation.DifferentialPilot.steerPrep(double)
          Access to this method will be private in NXJ version 1.0 when the CompassPilot is removed. 
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)