package uk.ac.leeds.ccg.cluster; import uk.ac.leeds.ccg.geotools.*; public class MyPoint extends GeoPoint{ int cases=0; double pop=0; public MyPoint(int id,double x,double y,int c, int p){ this(id,x,y,c,(double)p); } public MyPoint(int id,double x,double y,int c, double p){ super(id,x,y); cases=c; pop=p; } public void setPop(double p){ pop=p; } public double getPop(){ return pop; } public void setCases(int c){ cases=c; } public int getCases(){ return cases; } // this is far from ideal!! -- first column (id) being used for time public int getTime(){ return id; } public String toString(){ return ""+id+" "+x+" "+y+" "+pop+" "+cases; } public Object clone(){ return new MyPoint(id,x,y,cases,pop); } }