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

📄 tempmapper.java

📁 一个基于PlaceLab的室内和室外的智能导航系统
💻 JAVA
字号:
/* * Created on 23-Sep-2004 * */package org.placelab.mapper;import java.util.Enumeration;import java.util.Hashtable;import java.util.Vector;import org.placelab.core.Coordinate;/** * This mapper resides purely in memory, so it is NOT persistent.  Use this for debugging. */public class TempMapper extends AbstractMapper {    Hashtable map;    public TempMapper() {        super(false);        map = new Hashtable();    }    public Enumeration query(Coordinate c1, Coordinate c2) {        System.err.println("TempMapper: query unsupported");        return null;    }    protected Vector findBeaconsImpl(String id) {        return (Vector) map.get(id);    }    protected boolean putBeaconsImpl(String id, Vector beacons) {        map.put(id,beacons);        return true;    }    private boolean isOpened = false;    public boolean open() {        isOpened = true;        return true;    }    public boolean close() {        isOpened = false;        return true;    }    public boolean deleteAll() {        map = new Hashtable();        return true;    }    public boolean isOpened() {        return isOpened;    }    public void startBulkPuts() {    }    public void endBulkPuts() {    }}

⌨️ 快捷键说明

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