int index = 0;
int[] idxr = new int[]{index};
THistoryRecord hst = getLocalHistoryRecord(prp.getName(), devName, idxr);
if (hst == null) return TErrorList.not_implemented;
index = idxr[0];
DSUMMARY ds = null;
try
{
ds = hst.getDataSummaryFromSTS(sampleInterval[0]);
}
catch (TineRuntimeErrorException e)
{
return (short)e.getErrorCode();
}
switch (dout.dFormat)
{
case TFormat.CF_STRUCT:
if (metaIndex != TMetaProperties.RBSUMMARY_ID)
return TErrorList.illegal_property;
if (dout.getTag().compareTo("DSUMMARY") != 0)
return TErrorList.invalid_structure_tag;
cc = dout.putData(ds);
break;
default:
double[] vals = ds.getSummary();
switch (metaIndex)
{
case TMetaProperties.RBAVE_ID:
cc = dout.putData(vals,1,0);
break;