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