public String toString() { // return id+":"+measures; String s = "" + id; for (Value v : measures) if (v == null || ((Double) v.getValue()) == Double.MAX_VALUE) s += ",?"; else s += "," + v; return s; }
public Object clone() { try { SensorPoint sp = new SensorPoint(this.id); for (Value v : this.measures) { sp.addMeasure((Value) v.clone()); } return sp; } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); e.getStackTrace(); } return null; }
public void setMeasure(Value v) { measures.set(v.getAttributeIndex(), v); }
public void addMeasure(Value v) { measures.add(v.getAttributeIndex(), v); }