protected UnitOperation(string name, UnitOpSystem uoSys) : base(name, uoSys) { heatLoss = new ProcessVarDouble(StringConstants.HEAT_LOSS, PhysicalQuantity.Power, 0.0, VarState.Specified, this); heatInput = new ProcessVarDouble(StringConstants.HEAT_INPUT, PhysicalQuantity.Power, 0.0, VarState.Specified, this); workInput = new ProcessVarDouble(StringConstants.WORK_INPUT, PhysicalQuantity.Power, 0.0, VarState.Specified, this); calculationType = UnitOpCalculationType.Balance; }
//constructor protected Solvable(string s, UnitOpSystem aSystem) : base() { this.name = s; this.unitOpSystem = aSystem; this.solveController = aSystem.SequentialSolvingController; solveState = SolveState.NotSolved; }
public override void SetObjectData() { base.SetObjectData(); int persistedClassVersion = (int)info.GetValue("ClassPersistenceVersionSolvable", typeof(int)); if (persistedClassVersion == 1) { this.name = (string)info.GetValue("Name", typeof(string)); this.solveState = (SolveState)info.GetValue("SolveState", typeof(SolveState)); this.varList = info.GetValue("VarList", typeof(ArrayList)) as ArrayList; this.unitOpSystem = (UnitOpSystem)info.GetValue("UnitOpSystem", typeof(UnitOpSystem)); } RecallInitialization(); }
//constructor protected Solvable(UnitOpSystem aSystem) : base() { this.unitOpSystem = aSystem; this.solveController = aSystem.SequentialSolvingController; }
protected TwoStreamUnitOperation(string name, UnitOpSystem uoSys) : base(name, uoSys) { }