예제 #1
0
 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;
 }
예제 #2
0
  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;
  }
예제 #3
0
 public void setMeasure(Value v) {
   measures.set(v.getAttributeIndex(), v);
 }
예제 #4
0
 public void addMeasure(Value v) {
   measures.add(v.getAttributeIndex(), v);
 }