Advertisement
Guest User

NodeCoordinate

a guest
Oct 31st, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1. package droga.w.grafie;
  2.  
  3. public class NodeCoordinate {
  4.       private long id;
  5.       private double lat;
  6.       private double lon;
  7.       public static int count = 0;
  8.       //Setters and Getters
  9.        
  10.       public void setId(long id){
  11.           this.id=id;
  12.       }
  13.      
  14.       public long getId(){
  15.           return id;
  16.       }
  17.      
  18.       public void setLat(double lat){
  19.           this.lat=lat;
  20.       }
  21.      
  22.       public double getLat(){
  23.           return lat;
  24.       }
  25.      
  26.       public void setLon(double lon){
  27.           this.lon=lon;
  28.       }
  29.      
  30.       public double getLon(){
  31.           return lon;
  32.       }
  33.      
  34.       @Override
  35.       public String toString()
  36.       {
  37.           return "Node [id=" + id + ". lat: " + lat + ", lon: " + lon + "]\n";
  38.       }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement