Examples of DSUMMARY


Examples of de.desy.tine.server.histories.DSUMMARY

            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;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.