Exemple #1
0
 //constructor
 protected Solvable(string s, UnitOperationSystem aSystem) : base()
 {
     this.name            = s;
     this.unitOpSystem    = aSystem;
     this.solveController = aSystem.SequentialSolvingController;
     solveState           = SolveState.NotSolved;
 }
Exemple #2
0
 protected UnitOperation(string name, UnitOperationSystem 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;
 }
Exemple #3
0
        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 = (UnitOperationSystem)info.GetValue("UnitOpSystem", typeof(UnitOperationSystem));
            }
            RecallInitialization();
        }
Exemple #4
0
 //constructor
 protected Solvable(UnitOperationSystem aSystem)
     : base()
 {
     this.unitOpSystem    = aSystem;
     this.solveController = aSystem.SequentialSolvingController;
 }
Exemple #5
0
 protected TwoStreamUnitOperation(string name, UnitOperationSystem uoSys) : base(name, uoSys)
 {
 }