⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fakenmeagpsspotter.java

📁 这是一款基于PlaceLab软件开发的导航系统中间件的客户端程序.
💻 JAVA
字号:
package org.placelab.spotter;/** * For testing purposes. */public class FakeNMEAGPSSpotter extends NMEAGPSSpotter {	private ScanThread t;	public FakeNMEAGPSSpotter(String name) { ; }	public void open() { ; }	public void close() { ; }	public void sendASentence(String sentence) {}	protected void startScanningImpl() {		t = new ScanThread();		//t.setName(name);		t.start();	}	protected void stopScanningImpl() {		t.cancel();		waitForThread(t);	}		private class ScanThread extends Thread {		private boolean done=false;		public synchronized void cancel() { done = true; }		public synchronized boolean isDone() { return done; }		public void run() {			while (!isDone()) {				lineAvailable("$GPGGA,021526,4739.7153,N,12218.9712,W,1,04,2.4,50.5,M,-18.4,M,,*4C");				lineAvailable("$GPRMC,021526,A,4739.7153,N,12218.9712,W,0.0,108.8,160604,18.2,E,A*38");				if (!isDone()) {					try { Thread.sleep(500); } catch (InterruptedException e) {}				}			}		}	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -