Location_info.java
资源名称:mcl.tar.gz [点击查看]
上传用户:kingseaxu
上传日期:2009-01-01
资源大小:49k
文件大小:1k
源码类别:
3G开发
开发平台:
Java
- import java.util.*;
- import java.awt.Point;
- class Location_info {
- Point es_p; /* estimated location */
- Hashtable one_hop_list; /* one hop neighbor list */
- Hashtable two_hop_list; /* two hop neighbor list */
- Point[] sample_points; /* sample points */
- int[] sample_weight; /* sample weights */
- int sample_num; /* sample number */
- int max_sample_num; /* maximum sample number */
- float sample_range; /* the maximum distance between samples */
- public Location_info() {
- es_p = new Point();
- one_hop_list = new Hashtable();
- two_hop_list = new Hashtable();
- max_sample_num = 50;
- sample_num = 0;
- sample_points = new Point[max_sample_num];
- sample_weight = new int[max_sample_num];
- }
- }