Пример #1
0
        public override void SetObjectData()
        {
            base.SetObjectData();
            int persistedClassVersion = (int)info.GetValue("ClassPersistenceVersionParticleSizeAndFraction", typeof(int));

            if (persistedClassVersion == 1)
            {
                this.sizeAndFraction = info.GetValue("SizeAndFraction", typeof(ParticleSizeAndFraction)) as ParticleSizeAndFraction;
                this.efficiency      = RecallStorableObject("Efficiency", typeof(ProcessVarDouble)) as ProcessVarDouble;
            }
        }
Пример #2
0
 public ParticleSizeFractionAndEfficiency(ParticleSizeAndFraction sizeAndFraction)
 {
     this.sizeAndFraction = sizeAndFraction;
     efficiency           = new ProcessVarDouble(StringConstants.COLLECTION_EFFICIENCY, PhysicalQuantity.Fraction, VarState.AlwaysCalculated, this);
 }