Download SECONDO SECONDO SECONDO
Transcript
–
135
–
"representation of a moving point !");
in = LEUtils.readInterval(ListExpr.fourElemList(aunit.first(),
aunit.second(), aunit.third(), aunit.fourth()));
aunit = aunit.rest().rest().rest().rest();
pm = readPointMap(ListExpr.fourElemList(aunit.first(),
aunit.second(),aunit.third(), aunit.fourth()));
}
// the corrected version of external representation
if(L==2){
in = LEUtils.readInterval(aunit.first());
pm = readPointMap(aunit.second());
}
if ((in == null) || (pm == null)){
Reporter.debug("Error in reading Unit");
Reporter.debug(tmp.writeListExprToString());
if(in==null){
Reporter.debug("Error in reading interval");
}
if(pm==null){
Reporter.debug("Error in reading Start and EndPoint");
}
defined = false;
return;
}
Intervals.add(in);
PointMaps.add(pm);
v = v.rest();
}
err = false;
defined = true;
}
public boolean isPointType(int num){
return true;
}
public void init (String name, int nameWidth, ListExpr type,
ListExpr value, QueryResult qr) {
AttrName = extendString(name, nameWidth);
int length = value.listLength();
Intervals = new Vector(length+2);
PointMaps = new Vector(length+2);
ScanValue(value);
if (err) {
Reporter.writeError("Dsplmovingpoint Error in ListExpr:" +
"parsing aborted");
qr.addEntry(new String("(" + AttrName + ": GTA(mpoint))"));
return;
}else
qr.addEntry(this);
bounds = null;
TimeBounds = null;
if(Intervals==null) // empty moving point
return;