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 lejos.nxt; import lejos.robotics.Encoder; /* * 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 motor port that supports NXT motors with tachometers. * * @author ...
104
github-java-corpus
2,012
package lejos.nxt; /* * 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 NXT touch sensor. * Also works with RCX touch sensors. * */ public class TouchSensor implements S...
216
github-java-corpus
2,012
package lejos.nxt; /* * 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 NXT sound sensor. * */ public class SoundSensor implements SensorConstants { ADSensorPort port; ...
387
github-java-corpus
2,012
package lejos.nxt; import lejos.robotics.RangeFinder; import lejos.util.Delay; /* * 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 NXT Ultrasonic Sensor. * */ public cla...
3,064
github-java-corpus
2,012
package lejos.nxt; /* * 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 abstraction for a sensor port that supports * setting and retrieving types and modes of sensors. * * @author La...
133
github-java-corpus
2,012
package lejos.nxt; import lejos.pc.comm.*; import lejos.nxt.remote.*; /** * Battery class that supports remote execution. * * Usage: int x = Battery.getVoltageMilliVolt(); * * @author Brian Bagnall and Lawrie Griffiths * */ public class Battery implements NXTProtocol { private static final NXT...
223
github-java-corpus
2,012
package lejos.nxt; /** * Abstraction for the tachometer built into NXT motors. * * @author Lawrie Griffiths * * <br/><br/>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 Tachome...
105
github-java-corpus
2,012
package lejos.nxt; import lejos.robotics.DCMotor; /* * 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 abstraction for a motor without a tachometer, * such as an RCX motor. * * @auth...
800
github-java-corpus
2,012
package lejos.nxt; import lejos.pc.comm.*; import java.io.*; import lejos.nxt.remote.*; /** * Sound class. * Usage: SoundSensor.playTone(500, 1000); * * This version of the Sound class supports remote execution. * * @author <a href="mailto:bbagnall@mts.net">Brian Bagnall</a> */ public class Sou...
534
github-java-corpus
2,012
package lejos.nxt; import lejos.pc.comm.*; import java.io.*; import java.util.ArrayList; import lejos.nxt.remote.*; /** * Support for remote file operations * * @author Brian Bagnall * */ public class FileSystem { private static final NXTCommand nxtCommand = NXTCommandConnector.getSingletonOpen()...
1,309
github-java-corpus
2,012
package lejos.nxt; import lejos.nxt.ADSensorPort; /* * 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 port that supports legacy RCX sensors. * * @author Lawrie Griffith...
110
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.SensorPort; import lejos.nxt.I2CSensor; /* * 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. */ /** * This class allows you to use a Sony Playstation 2 contr...
1,139
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.I2CPort; import lejos.nxt.I2CSensor; import java.awt.*; /* * 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. */ /** * Mindsensors NXTCam. * w...
848
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.*; /* * 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. */ /** * MServo, is a abstraction to model any RC Servo (continuous and non continuous) pl...
1,020
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.*; /* * 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. */ /** * This class manages the sensor NXT Line Leader from Mindsensors. * The sensor add...
1,052
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.I2CPort; import lejos.nxt.I2CSensor; /* * 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. */ /** * HiTechnic IRSeeker sensor - untested. * www.h...
317
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.robotics.DCMotor; /* * 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. */ /** * Motor class for PFMate class * * @author Michael Smith <mdsmitty@g...
848
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.*; /* * 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. */ /** * Supports Mindsensors PF Mate<br> * This device is used to control Lego Power Fun...
714
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.I2CPort; import lejos.nxt.I2CSensor; import lejos.nxt.rcxcomm.Opcode; import lejos.util.Delay; /* * 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. *...
1,931
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.I2CSensor; import lejos.nxt.I2CPort; import lejos.util.Delay; /* * 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. */ /** * Class for controll...
3,137
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.SensorPort; import lejos.nxt.I2CSensor; 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. */ /** * Abstraction for...
609
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.BasicMotorPort; /* * 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. */ /** * Supports a motor connected to the Mindsensors RCX Motor Multiplexer ...
264
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.I2CPort; import lejos.nxt.I2CSensor; /* * 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. */ /** * Supports Mindsensors DIST-Nx series of Optical ...
2,949
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.I2CPort; import lejos.nxt.I2CSensor; 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. */ /** * Abstraction for a HiTechnic or Min...
897
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.I2CPort; import lejos.nxt.I2CSensor; /* * 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. */ /** * Supports Mindsensors RXMux<br> * This sensor ...
449
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.SensorPort; import lejos.nxt.I2CSensor; 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. */ /** * This class has ...
1,642
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.*; /** * MotorPort for PF Motors using HiTechnic IRLink * * @author Lawrie Griffiths * */ public class PFMotorPort implements BasicMotorPort { private int channel, slot; private IRLink link; private static final int[] modeTranslation = {1,2,3,0}; pu...
209
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.*; /* * 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. */ /** * Supports HiTechnics EOPD (Electro Optical Proximity Detector) sensor.<br> * This sensor is ...
476
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.*; import lejos.robotics.Colors; import lejos.robotics.LampLightDetector; import lejos.robotics.Colors.Color; /* * 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 BUIL...
983
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.SensorPort; /* * 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. */ /** * LServo, Lattebox Servo, is a abstraction to model any RC Servo (continous...
900
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.I2CPort; import lejos.nxt.I2CSensor; import java.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. */ /** * Supports for HiTechnic IRL...
852
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.I2CPort; import lejos.nxt.I2CSensor; /* * 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. */ /** * This class works with HiTechnic or Mindsensors acceleratio...
1,303
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.I2CPort; import lejos.nxt.I2CSensor; /* * 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. */ /** * Supports the mindsensors RCX Motor Multiplexer ...
404
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.BasicMotor; import lejos.nxt.BasicMotorPort; /* * 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 an RCX motor. * */ public class...
115
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.BasicMotorPort; import lejos.util.Delay; /* * 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. */ /** * Supports a motor connected to a remot...
418
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.I2CPort; import lejos.nxt.I2CSensor; import lejos.util.Delay; /** * Support for the Codatex RFID Sensor. * See www.codatex,com for details. * Notes this device requires delays between various commands for them to * function correctly, it also enters a sleep mode and...
1,938
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.ADSensorPort; import lejos.nxt.SensorConstants; /* * 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. */ /** * Support the HiTechnic Gyro sensor...
237
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.I2CSensor; import lejos.nxt.I2CPort; import lejos.robotics.ColorDetector; /* * 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. */ /** * HiTechnic...
1,637
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.*; /* * 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 an RCX temperature sensor. * * @author Soren Hilmer * *...
335
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.SensorConstants; import lejos.nxt.LegacySensorPort; import lejos.robotics.Tachometer; import lejos.util.Delay; /* * 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 BUI...
1,272
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.SensorPort; /* * 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. */ /** * LDCMotor, Lattebox DC Motor, is a abstraction to model any DCMotor connec...
519
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.SensorPort; import lejos.nxt.I2CSensor; /* * 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. */ /** * Generic abstraction to manage RC Servos and ...
1,710
github-java-corpus
2,012
package lejos.nxt.addon; import lejos.nxt.*; /* * 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. */ /** * This class has been designed to manage the device * MSC8, Mindsensors NXT Servo ...
869
github-java-corpus
2,012
package lejos.nxt; import java.io.IOException; import lejos.nxt.remote.*; import lejos.pc.comm.*; /** * A sensor wrapper to allow easy access to I2C sensors, like the ultrasonic sensor. * * This version of this class supports remote execution of I2C. * * @author Brian Bagnall and Lawrie Griffiths ...
1,751
github-java-corpus
2,012
package lejos.nxt; import lejos.robotics.Colors; import lejos.robotics.LampLightDetector; /* * 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. */ /** * This class is used to obtain reading...
1,044
github-java-corpus
2,012
package lejos.nxt; import lejos.nxt.remote.*; import lejos.pc.comm.NXTCommandConnector; /** * This version of the MotorPort class supports a motor connected to a remote NXT * * @author Lawrie Griffiths * */ public class MotorPort implements NXTProtocol, TachoMotorPort { private static final NXTCom...
237
github-java-corpus
2,012
package lejos.nxt.remote; /* * 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. */ /** * Error messages that can be returned after a call to the NXT brick. * e.g. The return value comes from ...
795
github-java-corpus
2,012
package lejos.nxt.remote; import java.io.*; 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. */ /** * Motor class. Contains three instances of Motor. ...
2,208
github-java-corpus
2,012
package lejos.nxt.remote; import lejos.nxt.*; import java.io.*; /* * 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. */ /** * Supports a motor connected to a remote NXT * * @author La...
473
github-java-corpus
2,012
package lejos.nxt.remote; /* * 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 remote NXT accessed via LCP. * */ public class DeviceInfo { public byte status; pu...
97
github-java-corpus
2,012
package lejos.nxt.remote; /* * 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. */ /** * Container for holding the output state values. * * @author <a href="mailto:bbagnall@mts.net">Brian ...
303
github-java-corpus
2,012
package lejos.nxt.remote; /* * 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. */ /** * Firmware information for a remote NXT accessed via LCP. * */ public class FirmwareInfo { public b...
89
github-java-corpus
2,012
package lejos.nxt.remote; import java.io.*; /* * 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. */ /** * Battery readings from a remote NXT. */ public class RemoteBattery implements NXT...
255
github-java-corpus
2,012
package lejos.nxt.remote; import java.io.UnsupportedEncodingException; /* * 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. */ /** * Methods to encode and decode ASCIIZ. * ASCIIZ is ASCII...
430
github-java-corpus
2,012
package lejos.nxt.remote; /* * 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. */ /** * Structure that gives information about a leJOS NXJ file. * */ public class FileInfo { /** * The name of t...
195
github-java-corpus
2,012
package lejos.nxt.remote; /* * 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. */ /** * Sensor input values for a remote NXT accessed via LCP. * * @author <a href="mailto:bbagnall@mts.net...
296
github-java-corpus
2,012
package lejos.nxt.remote; /* * 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. */ /** * LEGO Communication Protocol constants. * */ public interface NXTProtocol { // Command types const...
1,542
github-java-corpus
2,012
package lejos.nxt.remote; import java.io.*; /* * 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. */ /** * Sends LCP requests to the NXT and receives replies. * Uses an object that impleme...
8,009
github-java-corpus
2,012
package lejos.nxt.remote; import java.io.*; /* * 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 that all NXTComm implementation classes must implement for low-level comm...
184
github-java-corpus
2,012
package lejos.nxt; /* * 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 abstraction for a port that supports Analog/Digital sensors. * * @author Lawrie Griffiths. * */ public interfa...
110
github-java-corpus
2,012
package lejos.nxt; import lejos.pc.comm.*; import lejos.nxt.remote.*; import java.io.*; /** * Port class. Contains 4 Port instances.<br> * Usage: Port.S4.readValue(); * * This version of the SensorPort class supports remote execution. * * @author <a href="mailto:bbagnall@mts.net">Brian Bagnall</a>...
1,111
github-java-corpus
2,012
package lejos.nxt.rcxcomm; import lejos.nxt.*; import lejos.nxt.addon.*; /* * 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. */ /** * Emulates RCX LLC class using the RCXLink class. * ...
742
github-java-corpus
2,012
package lejos.nxt.rcxcomm; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import lejos.util.Delay; /* * 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. *...
1,330
github-java-corpus
2,012
package lejos.nxt.rcxcomm; import lejos.nxt.*; import java.io.IOException; /* * 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. */ /** * RCXPort provides an interface similar to java.net....
255
github-java-corpus
2,012
package lejos.nxt.rcxcomm; /* * 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. */ /** * Abstract packet handler. * Implementations must include sendPacket, receivePacket and * isPacketAv...
491
github-java-corpus
2,012
package lejos.nxt.rcxcomm; import lejos.nxt.*; import lejos.util.Delay; /* * 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. */ /** * Packet handler than implement the LLC packet protocol....
768
github-java-corpus
2,012
package lejos.nxt.rcxcomm; /* * 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. */ /** * Opcode constants. * */ public interface Opcode { public static final byte OPCODE_MASK = (byte...
1,975
github-java-corpus
2,012
package lejos.nxt.rcxcomm; /* * 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 Packet handler that guarantees reliable delivery using checksums, * acks, and a single bit sequence...
816
github-java-corpus
2,012
package lejos.nxt.rcxcomm; import lejos.nxt.*; import lejos.nxt.addon.*; import lejos.util.Delay; /* * 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. */ /** * Emulation of the RCX Serial...
1,702
github-java-corpus
2,012
package lejos.nxt; import lejos.pc.comm.*; import java.io.*; import lejos.nxt.remote.*; /** * Abstraction for the local NXT device. * * This version of the NXT class supports remote execution. * * @author Lawrie Griffiths and Brian Bagnall * */ public class NXT { private static NXTCommand nxt...
732
github-java-corpus
2,012
package lejos.nxt; import lejos.pc.comm.*; import lejos.nxt.remote.*; /** * Motor class. Contains three instances of Motor. * Usage: Motor.A.forward(5000); * * This version of the Motor class supports remote execution. * * */ public class Motor { private static final NXTCommand nxtCommand = N...
159
github-java-corpus
2,012
import java.io.File; import java.io.IOException; import java.util.Vector; import javax.bluetooth.RemoteDevice; import javax.microedition.lcdui.Graphics; import lejos.nxt.Battery; import lejos.nxt.Button; import lejos.nxt.LCD; import lejos.nxt.Settings; import lejos.nxt.Sound; import lejos.nxt.SystemSettings; import ...
7,850
github-java-corpus
2,012
package java.io; public class ByteArrayOutputStream extends OutputStream { private static final int INITIAL_CAPACITY = 10; private static final int CAPACITY_INCREMENT_NUM = 3; //numerator of the increment factor private static final int CAPACITY_INCREMENT_DEN = 2; //denominator of the increment factor protected ...
590
github-java-corpus
2,012
package java.io; import lejos.nxt.Flash; /* * DEVELOPER NOTES: * - Requirement is for all files to be contiguous (unfragmented) so * that they can be executed. * - Files are stored in the flash memory one file after another. * - If a user opens a file and wants to write to it, the file system * shuffl...
6,198
github-java-corpus
2,012
package java.io; /** * Minimal implementation of PrintStream. * * Currently only implements the mandatory write * method and println. * * @author Lawrie Griffiths * */ public class PrintStream extends OutputStream { private OutputStream os; public PrintStream(OutputStream os) { th...
636
github-java-corpus
2,012
package java.io; public class StringWriter extends Writer { private final StringBuffer sb; public StringWriter() { this.sb = new StringBuffer(); } public StringWriter(int size) { this.sb = new StringBuffer(size); } @Override public void close() throws IOException { //nothing } @Override publi...
251
github-java-corpus
2,012
package java.io; public class ByteArrayInputStream extends InputStream { protected byte[] buf; protected int count; protected int mark; protected int pos; public ByteArrayInputStream(byte[] buf) { this(buf, 0, buf.length); } public ByteArrayInputStream(byte[] buf, int off, int len) { if (len < 0) th...
415
github-java-corpus
2,012
package java.io; import lejos.nxt.Flash; /** * Reads a stream of bytes from a file. * This stream uses an internal Buffer of 256 bytes. * * @author Brian Bagnall * @author Sven Köhler */ public class FileInputStream extends InputStream { private int offset; private int file_limit; private int...
556
github-java-corpus
2,012
/* * @(#)EOFException.java 1.14 05/11/17 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.io; /** * Signals that an end of file or end of stream has been reached * unexpectedly during input. * <p> * This exception ...
324
github-java-corpus
2,012
package java.io; /** * Basic Reader implementation. In contrast to the JDK, this class is NOT synchronized. * * @author Sven Köhler */ public abstract class Reader { private static final int SKIP_BUF_LEN = 32; //MISSING protected Object lock //MISSING protected Reader(Object lock) //MISSING int read(CharBuf...
384
github-java-corpus
2,012
/* * Extracted from DataOutputStream.java. * May contain parts of the original Sun Microsystems code. */ package java.io; /** * @author Sven Köhler */ public interface DataOutput { /** * Writes <code>len</code> bytes from the specified byte array * starting at offset <code>off</code> to the underlying outp...
1,463
github-java-corpus
2,012
package java.io; /** * Basic Writer implementation. In contrast to the JDK, this class is NOT synchronized. * * @author Sven Köhler */ public abstract class Writer { private static final int STRING_BUF_SIZE = 32; //MISSING protected Object lock //MISSING protected Writer(Object lock) //MISSING Writer appen...
521
github-java-corpus
2,012
/* * @(#)IOException.java 1.19 00/02/02 * * Copyright 1994-2000 Sun Microsystems, Inc. All Rights Reserved. * * This software is the proprietary information of Sun Microsystems, Inc. * Use is subject to license terms. * */ package java.io; /** * Signals that an I/O exception of some sort has occurred. Th...
295
github-java-corpus
2,012
/* * @(#)InputStream.java 1.36 00/02/02 * * Copyright 1994-2000 Sun Microsystems, Inc. All Rights Reserved. * * This software is the proprietary information of Sun Microsystems, Inc. * Use is subject to license terms. * */ package java.io; /** * This abstract class is the superclass of all classes repres...
3,791
github-java-corpus
2,012
package java.io; public class FilterOutputStream extends OutputStream { protected OutputStream out; public FilterOutputStream(OutputStream out) { this.out = out; } @Override public void close() throws IOException { try { this.flush(); } finally { this.out.close(); } } @Override publ...
152
github-java-corpus
2,012
package java.io; import lejos.nxt.Flash; /** * Writes a stream of bytes to a file. * * @author Brian Bagnall * */ public class FileOutputStream extends OutputStream { /** * Current page this stream is writing to */ private int page_pointer; /** * Current byte in *buffer* (buff belo...
677
github-java-corpus
2,012
package java.io; /** * This is a minimal implementation of BufferedWriter. * Normally BufferedWriter extends the abstract class Writer. * The main reason for NXJ including this is to allow the new-line * character in text. * NOTE: Text writing is not synchronized either like standard Java. * * @autho...
516
github-java-corpus
2,012
package java.io; /** * This interface is not functional. It's here * to satisfy jikes. */ public interface Serializable { }
29
github-java-corpus
2,012
/* * @(#)OutputStream.java 1.23 00/02/02 * * Copyright 1994-2000 Sun Microsystems, Inc. All Rights Reserved. * * This software is the proprietary information of Sun Microsystems, Inc. * Use is subject to license terms. * */ package java.io; /** * This abstract class is the superclass of all classes repre...
1,311
github-java-corpus
2,012
package java.io; public class FilterInputStream extends InputStream { protected InputStream in; public FilterInputStream(InputStream in) { this.in = in; } @Override public int available() throws IOException { return this.in.available(); } @Override public void close() throws IOException { this.i...
196
github-java-corpus
2,012
package java.io; /** * This is a minimal implementation of BufferedWriter. * Normally BufferedWriter extends the abstract class Writer. * The main reason for NXJ including this is to allow the new-line * character in text. * NOTE: Text writing is not synchronized either like standard Java. * * @autho...
731
github-java-corpus
2,012
package java.io; /** * @author Sven Köhler */ public interface DataInput { boolean readBoolean() throws IOException; byte readByte() throws IOException; char readChar() throws IOException; double readDouble() throws IOException; float readFloat() throws IOException; void readFully(byte b[]) throws IOExce...
142
github-java-corpus
2,012
package java.io; public class FileNotFoundException extends IOException { public FileNotFoundException() { super(); } public FileNotFoundException(String s) { super(s); } }
35
github-java-corpus
2,012
package java.io; import lejos.charset.CharsetEncoder; import lejos.charset.Latin1Encoder; import lejos.charset.UTF8Encoder; import lejos.io.LejosOutputStreamWriter; public class OutputStreamWriter extends LejosOutputStreamWriter { private static final int BUFFERSIZE = 32; public OutputStreamWriter(OutputStream os...
219
github-java-corpus
2,012
/* * @(#)DataOutputStream.java 1.00 01/12/14 * * Adapted from the original Sun Microsystems code for leJOS. */ package java.io; /** * Transmits java data types as bytes over an OutputStream. * @author Brian Bagnall * @author Sven Köhler */ public class DataOutputStream extends FilterOutputStream implements Dat...
861
github-java-corpus
2,012
package java.io; import lejos.charset.Latin1Encoder; import lejos.io.LejosOutputStreamWriter; /** * NOTE: Text writing is not synchronized either like standard Java. * * @author Sven Köhler */ public class BufferedWriter extends Writer { private static final int DEFAULT_BUFFERSIZE = 64; private st...
796
github-java-corpus
2,012
package java.io; import lejos.charset.CharsetDecoder; import lejos.charset.Latin1Decoder; import lejos.charset.UTF8Decoder; import lejos.io.LejosInputStreamReader; public class InputStreamReader extends LejosInputStreamReader { private static final int BUFFERSIZE = 32; public InputStreamReader(InputStream os) { ...
214
github-java-corpus
2,012
package java.io; public class UnsupportedEncodingException extends IOException { public UnsupportedEncodingException() { super(); } public UnsupportedEncodingException(String s) { super(s); } }
38
github-java-corpus
2,012
package java.io; /** * Reads java data types transmitted as bytes over an InputStream. * * @author Sven Köhler */ public class DataInputStream extends FilterInputStream implements DataInput { public DataInputStream(InputStream in) { super(in); } private int readByte0() throws IOException { int ch = i...
993
github-java-corpus
2,012
package java.net; import java.io.*; import lejos.nxt.comm.*; /** * Socket. Allows a NXT to establish a connection with a remote Socket * server via a proxy server. * * Version 1.1 uses NXTConnection and does not need to distinguish between USB and Bluetooth. * * @author Ranulf Green & Lawrie Griffiths * ...
743