Rev 197 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
/*
* Copyright (c) 2009.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*/
package uk.me.parabola.splitter;
/**
* A single map node.
*
* @author Steve Ratcliffe
*/
public class Node extends Element {
private double lat, lon
;
private int mapLat, mapLon
;
public void set
(long id,
double lat,
double lon
) {
setId
(id
);
this.
lat = lat
;
this.
lon = lon
;
this.
mapLat = Utils.
toMapUnit(lat
);
this.
mapLon = Utils.
toMapUnit(lon
);
}
@
Override
public void reset
() {
super.
reset();
lat = 0.0d
;
lon = 0.0d
;
mapLat =
0;
mapLon =
0;
}
public double getLat
() {
return lat
;
}
public double getLon
() {
return lon
;
}
public int getMapLat
() {
return mapLat
;
}
public int getMapLon
() {
return mapLon
;
}
}