[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/eyes/tools/java/de/tub/eyes/gis MapXY.java, 1.1, 1.2

Till Wimmer twimmer at users.sourceforge.net
Thu May 18 10:08:00 PDT 2006


Update of /cvsroot/tinyos/tinyos-1.x/contrib/eyes/tools/java/de/tub/eyes/gis
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv21716

Modified Files:
	MapXY.java 
Log Message:
adapted to GIS change (TreeMap)

Index: MapXY.java
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/eyes/tools/java/de/tub/eyes/gis/MapXY.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** MapXY.java	4 Apr 2006 21:46:25 -0000	1.1
--- MapXY.java	18 May 2006 17:07:58 -0000	1.2
***************
*** 10,13 ****
--- 10,15 ----
  package de.tub.eyes.gis;
  
+ import java.util.*;
+ 
  /**
   *
***************
*** 15,30 ****
   */
  public class MapXY {
!     public int map;
!     public int x;
!     public int y;    
      
      /** Creates a new instance of mapXY */
      public MapXY() {
      }        
          
!     public MapXY (int floor, int y, int z) {
!         this.map = map;
!         this.x = x;
!         this.y = y;    
!     }    
  }
--- 17,34 ----
   */
  public class MapXY {
!     Map coordinates;
      
      /** Creates a new instance of mapXY */
      public MapXY() {
+         coordinates = new TreeMap();
      }        
          
!     public void set(int map, int x, int y) {
!         int [] xy = {x,y};
!         coordinates.put(new Integer(map), xy);  
!     }
!     
!     public int[] get(int map) {
!         return (int[])coordinates.get(new Integer(map));
!     }
  }



More information about the Tinyos-contrib-commits mailing list