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 | /*
* Copyright 2011 MOPAS(Ministry of Public Administration and Security).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 561 |
github-java-corpus | 2,012 | /*
* Copyright 2011 MOPAS(Ministry of Public Administration and Security).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 403 |
github-java-corpus | 2,012 | /*
* Copyright 2011 MOPAS(Ministry of Public Administration and Security).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 1,314 |
github-java-corpus | 2,012 | /*
* Copyright 2011 MOPAS(Ministry of Public Administration and Security).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 1,447 |
github-java-corpus | 2,012 | /*
* Copyright 2011 MOPAS(Ministry of Public Administration and Security).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 715 |
github-java-corpus | 2,012 | /*
* Copyright 2011 MOPAS(Ministry of Public Administration and Security).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 699 |
github-java-corpus | 2,012 | /*
* Copyright 2011 MOPAS(Ministry of Public Administration and Security).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 1,627 |
github-java-corpus | 2,012 | /*
* Copyright 2011 MOPAS(Ministry of Public Administration and Security).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 1,283 |
github-java-corpus | 2,012 | /*
* Copyright 2011 MOPAS(Ministry of Public Administration and Security).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 1,624 |
github-java-corpus | 2,012 | package egovframework.rte.tex.gds.web;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Properties;
import javax.annotation.Resource;
import javax.servlet.http.Htt... | 2,713 |
github-java-corpus | 2,012 | /*
* Copyright 2011 MOPAS(Ministry of Public Administration and Security).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 881 |
github-java-corpus | 2,012 | /*
* Copyright 2011 MOPAS(Ministry of Public Administration and Security).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 725 |
github-java-corpus | 2,012 | /*
* Copyright 2011 MOPAS(Ministry of Public Administration and Security).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 991 |
github-java-corpus | 2,012 | /*
* Copyright 2011 MOPAS(Ministry of Public Administration and Security).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 873 |
github-java-corpus | 2,012 | /*
* Copyright 2011 MOPAS(Ministry of Public Administration and Security).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 2,044 |
github-java-corpus | 2,012 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package nxjplugin;
import java.io.File;
import javax.swing.JFileChooser;
import javax.swing.JPanel;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import javax.swing.text.Document;
i... | 2,242 |
github-java-corpus | 2,012 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package nxjplugin;
import java.awt.Component;
import java.util.HashSet;
import java.util.Set;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import org.openide.WizardDescriptor;
import or... | 505 |
github-java-corpus | 2,012 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package nxjplugin;
import java.awt.Component;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.Output... | 1,551 |
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... | 369 |
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;
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;
/*
* 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.
*/
/**
* Should be implemented by a Pilot that provides a partial movement to a pose
* wh... | 143 |
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.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;
/*
* 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;
/*
* 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 |
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.
*/
/**
* Simple collection of time delay routines that are non interruptable.
* @author andy
*/
public class Delay {
/**... | 508 |
github-java-corpus | 2,012 | package lejos.util;
import java.io.PrintStream;
/*
* 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 Matrix implements Cloneable, java.io.Serializable {
/* ----------------... | 5,790 |
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.
*/
/** LU Decomposition.
<P>
For an m-by-n matrix A with m >= n, the LU decomposition is an m-by-n
unit lower tria... | 2,321 |
github-java-corpus | 2,012 | package lejos.pc.comm;
import javax.swing.*;
import java.awt.event.*;
import java.awt.geom.*;
import java.awt.*;
import java.io.*;
import lejos.robotics.Pose;
import lejos.robotics.RangeReadings;
import lejos.robotics.localization.*;
import lejos.geom.*;
import lejos.robotics.mapping.*;
/**
* A panel... | 2,094 |
github-java-corpus | 2,012 | package lejos.pc.comm;
import java.io.*;
/**
* Implementation of InputStream over NXTComm using Bluetooth.
*/
public class NXTCommInputStream extends InputStream {
private NXTComm nxtComm;
private byte buf[];
private int bufIdx, bufSize;
boolean endOfFile;
public NXTCommInputStream(NXTComm nxtCo... | 329 |
github-java-corpus | 2,012 | package lejos.pc.comm;
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
import java.io.*;
/**
* This class is useful for creating a PC GUI Application that connects to the NXT
* and exchanges data with it using Java streams.
*
*
* @author Lawrie Griffiths
*
*/
public abstrac... | 608 |
github-java-corpus | 2,012 | package lejos.pc.comm;
import java.util.ArrayList;
/**
* Abstract class that allows inheriting class to register and use log listeners.
*
* @author Lawrie Griffiths and Matthias Paul Scholz
*
*/
public abstract class NXTCommLoggable {
protected ArrayList<NXTCommLogListener> fLogListeners;
publi... | 300 |
github-java-corpus | 2,012 | package lejos.pc.comm;
import java.io.*;
/**
* Implementation of NXTComm using the the jbluez library
* on Linux or Unix systems.
*
* Should not be used directly - use NXTCommFactory to create
* an appropriate NXTComm object for your system and the protocol
* you are using.
*
*/
public class NXTCommBluez i... | 1,967 |
github-java-corpus | 2,012 | package lejos.pc.comm;
import java.io.*;
/**
* Implementation of OutputStream over NXTComm using Bluetooth.
*/
public class NXTCommOutputStream extends OutputStream {
private ByteArrayOutputStream baos;
private NXTComm nxtComm;
public NXTCommOutputStream(NXTComm nxtComm) {
this.nxtComm = nxtComm;
baos = ne... | 122 |
github-java-corpus | 2,012 | package lejos.pc.comm;
import java.io.IOException;
import java.io.InputStream;
/**
* Implements a sub-set of the Atmel SAM-BA download protocol. Only those
* functions required for program download to the NXT flash are currently
* implemented.
*
*/
public class NXTSamba {
private class MemoryInputStream exten... | 4,384 |
github-java-corpus | 2,012 | package lejos.pc.comm;
import javax.microedition.io.*;
import javax.bluetooth.*;
import java.io.*;
import java.util.Vector;
import java.util.Enumeration;
/**
* Implementation of NXTComm using the Bluecove libraries
* on Microsoft Windows.
*
* Should not be used directly - use NXTCommFactory to create
* an app... | 1,872 |
github-java-corpus | 2,012 | package lejos.pc.comm;
/**
* Machine-generated file. Do not modify.
*/
interface FlashWrite {
static final byte[] CODE = {
(byte)0x08, (byte)0xd0, (byte)0x4f, (byte)0xe2, (byte)0xff, (byte)0x60,
(byte)0xe0, (byte)0xe3, (byte)0x01, (byte)0x56, (byte)0xa0, (byte)0xe3,
(byte)0x4c, (byte)0x40, (byte)0x8f, (byte)0xe2,... | 704 |
github-java-corpus | 2,012 | package lejos.pc.comm;
import java.io.*;
import java.util.*;
/**
* Connects to a NXT using Bluetooth or USB (or either) and supplies input and output
* data streams.
*
* @author Lawrie Griffiths and Roger Glassey
*/
public class NXTConnector extends NXTCommLoggable
{
private DataInputStream dataI... | 3,236 |
github-java-corpus | 2,012 | package lejos.pc.comm;
import java.io.IOException;
import java.util.ArrayList;
import lejos.nxt.remote.*;
public class NXTConnectionManager {
private ArrayList<NXTCommand> nxtCommands;
private NXTConnector nxtConnector;
public NXTConnectionManager() {
nxtConnector = new NXTConnector();
nxtComm... | 1,017 |
github-java-corpus | 2,012 | package lejos.pc.comm;
import java.util.Vector;
/**
* Implementation of NXTComm over USB using libnxt.
*
* Should not be used directly - use NXTCommFactory to create
* an appropriate NXTComm object for your system and the protocol
* you are using.
*
*/
public class NXTCommLibnxt extends NXTCommUSB {
public ... | 373 |
github-java-corpus | 2,012 | package lejos.pc.comm;
/**
* Structure containing information about a specific NXT
* and the potential connections to it.
*
* Returned from the NXTComm search method.
*
*/
public class NXTInfo {
/**
* Friendly name of the NXT.
*/
public String name;
/**
* The device address.
*/
public String de... | 397 |
github-java-corpus | 2,012 | package lejos.pc.comm;
import java.io.*;
import lejos.nxt.remote.*;
/**
*
* Interface that all NXTComm implementation classes must implement for low-level communication
* with the NXT.
*
*/
public interface NXTComm extends NXTCommRequest {
public static final int PACKET = 0;
public static final int LCP ... | 557 |
github-java-corpus | 2,012 | package lejos.pc.comm;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;
/**
*
* Creates a version of NTComm appropriate to the OS in use and protocol
* (Bluetooth or USB) that is requested.
*
*/
publi... | 1,095 |
github-java-corpus | 2,012 | package lejos.pc.comm;
/**
*
* Exception thrown by the jbluez library.
*
*/
public class BlueZException extends Exception {
private static final long serialVersionUID = -1533948968757411349L;
public BlueZException() {
}
public BlueZException(String message) {
super(message);
}
}
| 68 |
github-java-corpus | 2,012 | package lejos.pc.comm;
/**
* An exception thrown by a NXTComm implementation.
*/
public class NXTCommException extends Exception {
private static final long serialVersionUID = 8129230555756024038L;
public NXTCommException() {
super();
}
public NXTCommException(String arg0, Throwable arg1) {
... | 147 |
github-java-corpus | 2,012 | package lejos.pc.comm;
import lejos.nxt.remote.*;
import java.io.*;
import java.util.Iterator;
import java.util.Vector;
/**
* Base Implementation of NXTComm for USB
*
* This module implements two types of I/O over USB.
* 1. The standard Lego LCP format used for LCP command processing.
* 2. A Simple... | 3,963 |
github-java-corpus | 2,012 | package lejos.pc.comm;
import java.util.Vector;
/**
* Implementation of NXTComm using the the LEGO Fantom API.
*
* Currently only supports USB access. The Fantom read function when using
* Bluetooth seems to be broken, it does not work if the amount of data
* available to be read does not match the amount of da... | 643 |
github-java-corpus | 2,012 | package lejos.pc.comm;
public enum NXTConnectionState {
PACKET_STREAM_CONNECTED,
RAW_STREAM_CONNECTED,
LCP_CONNECTED,
RCONSOLE_CONNECTED,
DATALOG_CONNECTED,
DISCONNECTED,
UNKNOWN;
}
| 44 |
github-java-corpus | 2,012 | package lejos.pc.comm;
/**
* Listener for log events
*
* @author Matthias Paul Scholz
*
*/
public interface NXTCommLogListener {
public void logEvent(String message);
public void logEvent(Throwable throwable);
}
| 50 |
github-java-corpus | 2,012 | package lejos.pc.comm;
import java.io.IOException;
import lejos.nxt.remote.*;
/**
* Used by remote execution leJOS API classes to create a connection to a
* NXTCommand (LCP) connection to the NXT.
*
* @author Lawrie Griffiths
*
*/
public class NXTCommandConnector {
private static NXTConnector co... | 318 |
github-java-corpus | 2,012 | package lejos.geom;
import java.awt.geom.*;
/**
* Represents a line and supports calculating the point of intersection of two
* line segments.
*
* @author Lawrie Griffiths
*
* <br/><br/>WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
* DO NOT EDIT THE VERSION IN pccomms AS ... | 847 |
github-java-corpus | 2,012 | package lejos.geom;
import java.awt.geom.*;
/**
* Point with float co-ordinates for use in navigation.
*
* @author Lawrie Griffiths
*
*/
public class Point extends Point2D.Float {
public Point(float x, float y) {
super(x,y);
}
}
| 62 |
github-java-corpus | 2,012 | package lejos.nxt;
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.
*/
/**
* LEGO Color Sensor driver.
* This driver provides access to the LEGO Color sensor. It allows ... | 2,140 |
github-java-corpus | 2,012 | package lejos.nxt;
import lejos.pc.comm.*;
import lejos.nxt.remote.*;
import java.io.*;
/**
* The message class is used to send messages between NXT bricks.
* @author BB
*
*/
public class Inbox {
private static final NXTCommand nxtCommand = NXTCommandConnector.getSingletonOpen();
public static ... | 195 |
github-java-corpus | 2,012 | package lejos.nxt;
/**
* Abstraction for a port that supports I2C sensors.
*
* This is a simplified version of the interface used by for remote execution
* of I2C.
*
* @author Lawrie Griffiths
*
*/
public interface I2CPort extends BasicSensorPort {
public static final int STANDARD_MODE = 0;
public... | 106 |
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.
*/
/**
* Constants used to set Sensor types and modes.
*
*/
public interface SensorConstants {
public static final int TYPE_... | 393 |
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 motor port that supports RCX
* type motors, but not NXT motors with tachometers.
*
* @author L... | 141 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.