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

📄 stumblermeasurement.java

📁 一个基于PlaceLab的室内和室外的智能导航系统
💻 JAVA
字号:
/* * Created on Jun 16, 2004 * */package org.placelab.core;/** * A Measurement produced by reading a portion of a log by a {@link org.placelab.spotter.LogSpotter} */public class StumblerMeasurement extends BeaconMeasurement implements PositionMeasurement {	private Coordinate coord;		public StumblerMeasurement(long timestampInMillis, Coordinate c) {		super(timestampInMillis);		coord = c;	}	public StumblerMeasurement(long timestampInMillis, Coordinate c, BeaconReading[] readings) {		super(timestampInMillis, readings);		coord = c;	}		public void setPosition(Coordinate c) { coord = c; }	public Coordinate getPosition() { return coord; }	    /* (non-Javadoc)     * @see org.placelab.core.PositionMeasurement#getType()     */    public String getType() {        return "STUMBLER";    }    public String toLogString1() {        return "TYPE=GPS|TIME="+getTimestamp()+                        "|LAT="+getPosition().getLatitudeAsString()+                        "|LON="+getPosition().getLongitudeAsString()+                        "|MADEUP=TRUE\n" + super.toLogString();    }}

⌨️ 快捷键说明

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