示例#1
0
        public void setDsType(Common.DsType newDsType)
        {
            dsType = newDsType;
            dsTypeName.set(dsType.Name);

            // set datasource type
            // reset datasource status
            lastValue.set(Double.NaN);
            accumValue.set(0.0);
            // reset archive status
            int dsIndex = parentDb.getDsIndex(dsName.get());

            Archive[] archives = parentDb.getArchives();
            foreach (Archive archive in archives)
            {
                archive.getArcState(dsIndex).setAccumValue(Double.NaN);
            }
        }