Source
stringclasses
1 value
Date
int32
2.01k
2.01k
Text
stringlengths
3
15.9M
Token_count
int32
1
2.44M
github-java-corpus
2,012
package javax.microedition.io; import java.io.*; public interface OutputConnection extends Connection { /** * Open and return a data output stream for a connection. * @return the data output stream */ public DataOutputStream openDataOutputStream(); /** * Open and return an output stream ...
83
github-java-corpus
2,012
package javax.microedition.location; /** * The Orientation class represents the physical orientation of the terminal. Orientation * is described by azimuth to north (the horizontal pointing direction), pitch (the * vertical elevation angle) and roll (the rotation of the terminal around its own * longitudinal...
1,423
github-java-corpus
2,012
package javax.microedition.location; /** * The Landmark class represents a landmark, i.e. a known location with a name. A landmark * has a name by which it is known to the end user, a textual description, * QualifiedCoordinates and optionally AddressInfo. * <p> * This class is only a container for the info...
1,050
github-java-corpus
2,012
package javax.microedition.location; /** * The LocationException is thrown when a location API specific error has occurred. The * detailed conditions when this exception is thrown are documented in the methods that * throw this exception. */ public class LocationException extends Exception { /** * ...
115
github-java-corpus
2,012
package javax.microedition.location; /** * The LandmarkException is thrown when an error related to handling landmarks has * occurred. */ public class LandmarkException extends Exception { /** * Constructs a LandmarkException with no detail message. */ public LandmarkException() { } /** *...
106
github-java-corpus
2,012
package javax.microedition.location; import java.util.Enumeration; import java.util.Vector; /** * This class has been designed to manage coordinates * using JSR-179 Location API * http://www.jcp.org/en/jsr/detail?id=179 * * @author Juan Antonio Brenha Moral (calculateDistanceAndAzimuth by Charles Man...
5,490
github-java-corpus
2,012
package javax.microedition.location; /** * This interface represents a listener to events associated with detecting proximity to * some registered coordinates. Applications implement this interface and register it with * a static method in LocationProvider to obtain notifications when proximity to registered ...
474
github-java-corpus
2,012
package javax.microedition.location; /** * The LocationListener represents a listener that receives events associated with a * particular LocationProvider. Applications implement this interface and register it with * a LocationProvider to obtain regular position updates. * <p> * When the listener is regist...
598
github-java-corpus
2,012
package javax.microedition.location; /** * The Location class represents the standard set of basic location information. This * includes the timestamped coordinates, accuracy, speed, course, and information about * the positioning method used for the location, plus an optional textual address. * <p> * The ...
2,553
github-java-corpus
2,012
package javax.microedition.location; import java.util.Enumeration; import java.util.Vector; /** * This is the starting point for applications using this API and represents a source of * the location information. A LocationProvider represents a location-providing module, * generating Locations. * <p> ...
2,313
github-java-corpus
2,012
package javax.microedition.location; /** * Used to load and save landmark information on the File system. * Currently unimplemented because it is unlikely this class would be used by NXT programmers. * If you require this class, please send an email to bbagnall@mts.net, or if you want to * implement this y...
98
github-java-corpus
2,012
package javax.microedition.location; /** * <p> * The AddressInfo class holds textual address information about a location. Typically the * information is e.g. street address. The information is divided into fields (e.g. * street, postal code, city, etc.). Defined field constants can be used to retrieve field...
1,780
github-java-corpus
2,012
package javax.microedition.location; public class QualifiedCoordinates extends Coordinates { private float horizontalAccuracy; private float verticalAccuracy; public QualifiedCoordinates(double latitude, double longitude,float altitude, float horizontalAccuracy, float verticalAccuracy) { super(latitud...
408
github-java-corpus
2,012
package javax.microedition.location; /** * Empty class used to satisfy Location API criteria. * Normally this would be used to specify criteria for choosing a GPS * but it is unneeded by the leJOS API. Use null instead, as in LocationProvider.getInstance(null). * @author BB * */ public class Criteria { ...
67
github-java-corpus
2,012
package javax.microedition.location; import java.io.*; import javax.bluetooth.*; import javax.microedition.io.*; import lejos.addon.gps.*; /** * This class is not visible to users and should not be instantiated directly. Instead it * is retrieved from the factory method LocationProvider.getInstance(). ...
2,311
github-java-corpus
2,012
package javax.microedition.lcdui; /** * * @author Andre Nijholt */ public interface ItemStateListener { public void itemStateChanged(Item item) ; }
37
github-java-corpus
2,012
package javax.microedition.lcdui; import java.util.ArrayList; /** * * @author Andre Nijholt */ public class Displayable { public static final int KEY_LEFT = 37; // Left key public static final int KEY_ENTER = 38; // Up key public static final int KEY_RIGHT = 39; // Right key public static final...
428
github-java-corpus
2,012
package javax.microedition.lcdui; /** * * @author Andre Nijholt */ public class Image { private int width; private int height; private byte[] data; public Image(int width, int height, byte[] data) { this.width = width; this.height = height; this.data = data; } public int getWidth()...
111
github-java-corpus
2,012
package javax.microedition.lcdui; /** * * @author Andre Nijholt */ public interface ItemCommandListener { public void commandAction(Command c, Item d); }
39
github-java-corpus
2,012
package javax.microedition.lcdui; /** * * @author Andre Nijholt */ public interface Choice { public static final int EXCLUSIVE = 1; public static final int MULTIPLE = 2; public static final int IMPLICIT = 3; public static final int POPUP = 4; public static final int TEXT_WRAP_DEFAULT = 0; pu...
282
github-java-corpus
2,012
package javax.microedition.lcdui; import java.util.ArrayList; /** * * @author Andre Nijholt */ public class ChoiceGroup extends Item implements Choice { protected int choiceType; protected ArrayList<ChoiceItem> choiceItems; // private int fitPolicy; /** Scrolling administration */ private int...
2,251
github-java-corpus
2,012
package javax.microedition.lcdui; /** * * @author Andre Nijholt */ public class Gauge extends Item { private int maxValue; private int curValue; public Gauge(String label, boolean interactive, int maxValue, int initialValue) { this.label = label; this.interactive = interactive; this.maxValu...
598
github-java-corpus
2,012
package javax.microedition.lcdui; /** * * @author Andre Nijholt */ public class TextBox extends Screen { private final char[][] keyboard = { {'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'}, {'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 8}, {5, 'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', 13}, ...
1,701
github-java-corpus
2,012
package javax.microedition.lcdui; import lejos.nxt.LCD; /** * Preliminary Graphics class for LCD Screen * @author Brian Bagnall * */ public class Graphics { /** drawArc and fillArc accuracy parameter */ private static final int ARC_ACC = 5; /* Public color definitions */ public stati...
5,017
github-java-corpus
2,012
package javax.microedition.lcdui; /** * * @author Andre Nijholt */ public class Spacer extends Item { public Spacer(int minWidth, int minHeight) { this.minWidth = minWidth; this.minHeight = minHeight; } public void addCommand(Command cmd) { throw new IllegalStateException(); } public...
153
github-java-corpus
2,012
package javax.microedition.lcdui; /** * * @author Andre Nijholt */ public class StringItem extends Item { private String text; public StringItem(String label, String text) { this.label = label; this.text = text; if (label != null) { minWidth = (label.length() * Display.CHAR_WIDTH); ...
307
github-java-corpus
2,012
package javax.microedition.lcdui; import lejos.nxt.LCD; /** * * @author Andre Nijholt */ public class Font { public int getHeight() { return LCD.FONT_HEIGHT; } public int stringWidth(String str) { return str.length()*LCD.CELL_WIDTH; } }
71
github-java-corpus
2,012
package javax.microedition.lcdui; import java.util.ArrayList; /** * * @author Andre Nijholt */ public class Form extends Screen implements CommandListener { private static final Command EDIT_COMMAND = new Command(1, Command.SCREEN, 0); private ItemStateListener itemStateListener; private ArrayLis...
2,036
github-java-corpus
2,012
package javax.microedition.lcdui; /** * * @author Andre Nijholt */ public abstract class Screen extends Displayable { protected void keyPressed(int keyCode) {} protected void keyReleased(int keyCode) {} protected void showNotify() { repaint(); } protected void hideNotify() { repaint(); ...
81
github-java-corpus
2,012
package javax.microedition.lcdui; /** * * @author Andre Nijholt */ public class Command { public static final int SCREEN = 1; public static final int BACK = 2; public static final int CANCEL = 3; public static final int OK = 4; public static final int HELP = 5; public static final int STOP =...
279
github-java-corpus
2,012
package javax.microedition.lcdui; import java.util.ArrayList; /** * * @author Andre Nijholt */ public class List extends Screen implements Choice { /** Default command for implicit lists */ private final Command SELECT_COMMAND = new Command(0, Command.SCREEN, 0); protected int listType; protecte...
1,889
github-java-corpus
2,012
package javax.microedition.lcdui; /** * * @author Andre Nijholt */ public class TextField extends Item { public static final int ANY = 0x0001; public static final int EMAILADDR = 0x0002; public static final int NUMERIC = 0x0003; public static final int PHONENUMBER = 0x0004; public s...
551
github-java-corpus
2,012
package javax.microedition.lcdui; /** * * @author Andre Nijholt */ public interface CommandListener { public void commandAction(Command c, Displayable d); }
39
github-java-corpus
2,012
package javax.microedition.lcdui; import lejos.nxt.Button; import lejos.nxt.ButtonListener; import lejos.util.Timer; import lejos.util.TimerListener; import lejos.util.Delay; /** * * @author Andre Nijholt */ public class Display { private static final int TICKER_INTERVAL_MSEC = 100; public stati...
2,021
github-java-corpus
2,012
package javax.microedition.lcdui; import java.util.ArrayList; /** * * @author Andre Nijholt */ public abstract class Item { protected String label; protected int minWidth; protected int minHeight; protected int prefWidth; protected int prefHeight; protected boolean interactive = false; ...
465
github-java-corpus
2,012
package javax.microedition.lcdui; import lejos.nxt.Sound; /** * * @author Andre Nijholt */ public class Alert extends Screen { /** Default command for alert */ private final Command DISMISS_COMMAND = new Command(0, Command.SCREEN, 0); public static final int FOREVER = -2; public static fin...
2,361
github-java-corpus
2,012
package javax.microedition.lcdui; public class Ticker { private String str; public Ticker(String str) { this.str = str; } public String getString() { return str; } public void setString(String str) { this.str = str; } }
64
github-java-corpus
2,012
package javax.bluetooth; import lejos.nxt.comm.Bluetooth; import java.util.Vector; /** * The <code>DiscoveryAgent</code> class provides methods to perform device * discovery (but not service discovery in leJOS NXJ). A local device must have only one * <code>DiscoveryAgent</code> object. This object must be...
2,352
github-java-corpus
2,012
package javax.bluetooth; /** * The DeviceClass class represents the class of device (CoD) record as defined by the Bluetooth specification. This record is defined * in the Bluetooth Assigned Numbers document and contains information on the type of the device and the type of services available on the device. *...
680
github-java-corpus
2,012
package javax.bluetooth; /** * The <code>DiscoveryListener</code> interface allows an application to * receive device discovery (but not service discovery) events. The reason for omitting * service discovery is because NXT only allows one service: SPP (Serial Port Profile). * It would be possible to implem...
933
github-java-corpus
2,012
package javax.bluetooth; import java.io.IOException; public class BluetoothStateException extends IOException { private static final long serialVersionUID = 1L; public BluetoothStateException() { super(); } public BluetoothStateException(String msg) { super(msg); } }
52
github-java-corpus
2,012
package javax.bluetooth; import java.io.IOException; import javax.microedition.io.Connection; import lejos.nxt.comm.Bluetooth; import lejos.nxt.comm.BTConnection; /** * Represents a remote Bluetooth device. * * @author Lawrie Griffiths * */ public class RemoteDevice { private String addr; ...
835
github-java-corpus
2,012
package javax.bluetooth; import lejos.nxt.comm.Bluetooth; /** * Singleton class representing a local NXT Bluetooth device. * Most methods are standard, except you can also set the friendly * name with this class. * @author BB * */ public class LocalDevice { private static LocalDevice localDevic...
884
github-java-corpus
2,012
package lejos.io; import java.io.IOException; import java.io.OutputStream; import java.io.Writer; import lejos.charset.CharsetEncoder; /** * Abstract Single Byte Character Set OutputStream Writer. * @author Sven Köhler */ public class LejosOutputStreamWriter extends Writer { private final static int MIN_BUFFERS...
763
github-java-corpus
2,012
package lejos.io; import java.io.IOException; import java.io.InputStream; import java.io.Reader; import lejos.charset.CharsetDecoder; public class LejosInputStreamReader extends Reader { private static final int MIN_BUFFERSIZE = 16; private final CharsetDecoder coder; private final InputStream is; private fina...
914
github-java-corpus
2,012
package lejos.robotics; import lejos.geom.Point; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * Represents the location and heading(direction angle) of a robot.<br> * This class inclu...
1,005
github-java-corpus
2,012
package lejos.robotics; // TODO: This is wrong to have a lejos.robotics class using a lejos.nxt class. /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * Interface for a light se...
393
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * Interface for a regular DC motor with no encoder. * TODO: Reconcile this with lejos.nxt.BasicMotor. Mayb...
271
github-java-corpus
2,012
package lejos.robotics.localization; import lejos.robotics.Pose; import lejos.robotics.localization.MCLParticleSet; import lejos.robotics.mapping.RangeMap; import lejos.robotics.MoveListener; import lejos.robotics.MovementProvider; import lejos.robotics.RangeReadings; import lejos.robotics.RangeScanner; impor...
322
github-java-corpus
2,012
package lejos.robotics.localization; import java.awt.Rectangle; import lejos.geom.*; import java.io.*; import lejos.robotics.*; import lejos.robotics.mapping.RangeMap; import lejos.robotics.Movement; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN...
3,219
github-java-corpus
2,012
package lejos.robotics.localization; import lejos.robotics.Pose; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * Provides the coordinate and heading info via a Pose object. ...
97
github-java-corpus
2,012
package lejos.robotics.localization; import java.util.Random; import lejos.robotics.*; import lejos.robotics.mapping.RangeMap; import lejos.robotics.Movement; import lejos.geom.*; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL B...
917
github-java-corpus
2,012
package lejos.robotics.localization; import lejos.robotics.Pose; import lejos.robotics.mapping.RangeMap; import lejos.robotics.RangeReadings; import lejos.robotics.navigation.*; import lejos.robotics.Movement; import lejos.robotics.Movement.MovementType; import lejos.nxt.Motor; /** * An abstract extension...
795
github-java-corpus
2,012
package lejos.robotics; import java.io.*; import java.util.ArrayList; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * Represents a set of range readings. * * @author Law...
756
github-java-corpus
2,012
package lejos.robotics.mapping; import java.awt.Rectangle; import lejos.geom.*; import java.io.*; import lejos.robotics.*; import lejos.robotics.mapping.RangeMap; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN W...
1,008
github-java-corpus
2,012
package lejos.robotics.mapping; import java.awt.Rectangle; import lejos.geom.*; import lejos.robotics.Pose; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * The RangeMap inte...
272
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * Abstraction for the tachometer built into NXT motors. * * @author Lawrie Griffiths * */ public interface Enco...
142
github-java-corpus
2,012
package lejos.robotics.navigation; import lejos.nxt.Battery; import lejos.robotics.TachoMotor; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * The TachoPilot class is a software abstrac...
5,168
github-java-corpus
2,012
package lejos.robotics.navigation; import lejos.robotics.*; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * A Pilot that keeps track of direction using a CompassSensor. */ public class...
2,246
github-java-corpus
2,012
package lejos.robotics.navigation; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * The Pilot interface forms a common set of functions an implementation must offer in order to be used by...
4,674
github-java-corpus
2,012
package lejos.robotics.navigation; import lejos.robotics.Pose; import lejos.geom.Point; import lejos.robotics.*; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * The SimpleNavigator clas...
5,033
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * Interface for encoded motors without limited range of movement (e.g. NXT motor). * TODO: Alternate names...
774
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ public class SimplePlatform implements RotationPlatform { // Motor for rotating sensor: private TachoMotor d...
664
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * * NOTE: Might want to have listener that notifies when arbitrary rotation is completed. * */ publ...
102
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ // TODO: For object completeness, this probably needs to be split into three interfaces: ElevationPlatform, Rotati...
1,014
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * Abstraction for a Tachometer, which monitors speed of the encoder. * * @author BB * */ public interface Tachom...
163
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * Represent a single range reading */ public class RangeReading { private float range, angle; /** ...
252
github-java-corpus
2,012
package lejos.robotics; import lejos.robotics.Movement; /** * Should be implemented by a Pilot that provides a partial movement to a pose * when requested. * * @author nxj team */ public interface MovementProvider { public Movement getMovement(); /** * Adds a MoveListener that will be notified of all m...
96
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * A platform independent implementation for sensors that can detect white light levels. * @author BB * ...
351
github-java-corpus
2,012
package lejos.robotics; import lejos.robotics.Movement; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * Any class that wants to be updated automatically by a MovementProvider should * ...
195
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * Values for standard Lego colors. * @author Andy Shaw */ public final class Colors { /** * Colors used a...
255
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ public class MotorEvent { private int degrees; public MotorEvent(int degrees) { this.degrees = degree...
98
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * Abstraction for a single range scanning sensor, rotating platform with a range finder, * or a complete r...
159
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ public interface ColorDetector { /** * * @return The calibrated/normalized red value (0-255) */ pu...
207
github-java-corpus
2,012
package lejos.robotics.subsumption; /** * The Behavior interface represents an object embodying a specific * behavior belonging to a robot. Each behavior must define three things: <BR> * 1) The circumstances to make this behavior seize control of the robot. * e.g. When the touch sensor determines the robot has collid...
576
github-java-corpus
2,012
package lejos.robotics.subsumption; /** * Arbitrator controls which behavior should become active in * a behavior control system. Make sure to call start() after the * Arbitrator is instantiated.<br> * This class has three major responsibilities: <br> * 1. Determine the highest priority behavior that returns...
1,174
github-java-corpus
2,012
package lejos.robotics.proposal; import lejos.robotics.RangeFinder; import lejos.robotics.TachoMotor; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ public class CarefulDifferential...
198
github-java-corpus
2,012
package lejos.robotics.proposal; public class DestinationUnreachableException extends Exception { }
18
github-java-corpus
2,012
package lejos.robotics.proposal; import lejos.robotics.Movement; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * An enhanced Pilot that is capable of traveling in arcs. * @a...
2,220
github-java-corpus
2,012
package lejos.robotics.proposal; import lejos.robotics.MoveListener; import lejos.robotics.Movement; import lejos.robotics.TachoMotor; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ ...
697
github-java-corpus
2,012
package lejos.robotics.proposal; import lejos.robotics.Pose; import lejos.robotics.localization.PoseProvider; import lejos.geom.Point; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ ...
535
github-java-corpus
2,012
package lejos.robotics.proposal; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ import lejos.geom.Point; import lejos.robotics.MoveListener; import lejos.robotics.Movement; import lejos.roboti...
834
github-java-corpus
2,012
package lejos.robotics.proposal; import javax.microedition.location.*; import lejos.robotics.Pose; import lejos.robotics.localization.PoseProvider; /** * * The GPS PoseProvider class will probably work off data from the javax location package. * */ public class GPSPoseProvider implements PoseProvider ...
107
github-java-corpus
2,012
package lejos.robotics.proposal; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ public interface ArcRotatePilot extends ArcPilot, RotatePilot { }
71
github-java-corpus
2,012
package lejos.robotics.proposal; import java.awt.Rectangle; import java.util.ArrayList; import java.util.Collection; import lejos.geom.Point; import lejos.robotics.Pose; import lejos.robotics.RangeReading; import lejos.robotics.RangeReadings; import lejos.robotics.mapping.RangeMap; /* * WARNING: THIS CLA...
1,010
github-java-corpus
2,012
package lejos.robotics.proposal; import lejos.geom.Point; import lejos.robotics.Pose; import lejos.robotics.localization.PoseProvider; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ ...
411
github-java-corpus
2,012
package lejos.robotics.proposal; import lejos.robotics.Movement; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ public interface RotatePilot extends BasicPilot { /** * Rotates...
273
github-java-corpus
2,012
package lejos.robotics.proposal; import java.util.ArrayList; import lejos.nxt.Battery; import lejos.robotics.MoveListener; import lejos.robotics.Movement; import lejos.robotics.TachoMotor; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE...
5,612
github-java-corpus
2,012
package lejos.robotics.proposal; import lejos.robotics.Movement; import lejos.robotics.MovementProvider; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ public interface BasicPilot e...
359
github-java-corpus
2,012
package lejos.robotics.proposal; import lejos.geom.Point; import lejos.robotics.MoveListener; import lejos.robotics.Movement; import lejos.robotics.MovementProvider; import lejos.robotics.Pose; import lejos.robotics.localization.PoseProvider; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccom...
864
github-java-corpus
2,012
package lejos.robotics.proposal; import java.util.ArrayList; import java.util.Collection; import lejos.geom.Point; import lejos.robotics.Pose; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BU...
194
github-java-corpus
2,012
package lejos.robotics.proposal; import lejos.geom.Point; import lejos.robotics.Pose; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ public class WayPoint extends Point { protecte...
401
github-java-corpus
2,012
package lejos.robotics.proposal; import java.util.Collection; import lejos.geom.Point; import lejos.robotics.Pose; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * * Thi...
156
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ public class ExtendedPlatform extends SimplePlatform implements ElevationPlatform { // Motors for rotating sen...
594
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * Models a movement performed by a pilot * * @author Lawrie Griffiths * */ public class Movement {...
558
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * Abstraction for compasses and other devices than return the heading of a robot. * * @author Lawrie Gr...
252
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ /** * Abstraction for a range finder sensor that returns the distance to the nearest object * * @author Law...
172
github-java-corpus
2,012
package lejos.robotics; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ public interface ElevationPlatform { /** * Raises or lowers the sensor elevation. * @param angle getMaxi...
417
github-java-corpus
2,012
package lejos.util; /** * Timer object, with some similar functionality to java.Swing.Timer. * * @author <a href="mailto:rvbijl39<at>calvin<dot>edu">Ryan VanderBijl</a> */ public class Timer { private TimerListener myListener; private Thread myThread ; private int delay ; pr...
429
github-java-corpus
2,012
package lejos.util; /* * WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. * DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT. */ public class KalmanFilter { private Matrix a, b, c, i, q, r, at, ct; private Matrix mu, sigma, muBar, sigmaBar, ...
436