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; } }
public ParticleSizeFractionAndEfficiency(ParticleSizeAndFraction sizeAndFraction) { this.sizeAndFraction = sizeAndFraction; efficiency = new ProcessVarDouble(StringConstants.COLLECTION_EFFICIENCY, PhysicalQuantity.Fraction, VarState.AlwaysCalculated, this); }