Stop Backflow Valve added, used in FlyingStartMassCollection method, ver.2.4.248.

This commit is contained in:
Milan Hanajik
2016-03-18 10:36:33 +08:00
parent 2392bfa2a7
commit b006e36d52
10 changed files with 47 additions and 20 deletions
+6 -4
View File
@@ -16,6 +16,7 @@ namespace TBF.BenchControl
public ITempMeter TempOut;
public IPressureMeter PressIn;
public IPressureMeter PressOut;
public IValve StopBFValve;
public IList<IValve> ValvesOpen;
public IList<IValve> ValvesClose;
@@ -34,10 +35,11 @@ namespace TBF.BenchControl
{
Qfrom = entity.Qfrom;
Qto = entity.Qto;
TempIn = (ITempMeter)TbfComponents.FindComponent(entity.TempIn, components);
TempOut = (ITempMeter)TbfComponents.FindComponent(entity.TempOut, components);
PressIn = (IPressureMeter)TbfComponents.FindComponent(entity.PressIn, components);
PressOut = (IPressureMeter)TbfComponents.FindComponent(entity.PressOut, components);
TempIn = TbfComponents.FindComponent(entity.TempIn, components) as ITempMeter;
TempOut = TbfComponents.FindComponent(entity.TempOut, components) as ITempMeter;
PressIn = TbfComponents.FindComponent(entity.PressIn, components) as IPressureMeter;
PressOut = TbfComponents.FindComponent(entity.PressOut, components) as IPressureMeter;
StopBFValve = TbfComponents.FindComponent(entity.StopBFValve, components) as IValve;
string[] vOpen = entity.ValvesOpen.Split(new char[] { ';' });
ValvesOpen = new List<IValve>();