public Frame(PumpStation _pumpStation, StationComponentTypeEnum _stationComponentsType)
     : base(_pumpStation, _stationComponentsType)
 {
     FrameType             = ComponentsValCalculator.GetFrameTypeByPumpsWeight(_pumpStation.mainPump.ComponentWeight);
     ComponentName         = ComponentsValCalculator.GetFramesFullName(_pumpStation);
     ComponentLocationPath = ComponentsValCalculator.GetFullPathToTheComponent(_pumpStation.componentsLocation, this);
 }
Beispiel #2
0
        public Pump(ComponentsLocationPaths _componentsLocation, string _componentsName, int _pumpsWidth, int _pressureSideDn,
                    int _suctionSideDn, StationComponentTypeEnum _stationComponentsType)
            : base(_stationComponentsType)
        {
            ComponentName  = _componentsName;
            PumpsWidth     = _pumpsWidth;
            PressureSideDn = _pressureSideDn;
            SuctionSideDn  = _suctionSideDn;

            ComponentLocationPath = ComponentsValCalculator.GetFullPathToTheComponent(_componentsLocation, ComponentName, this);
        }
        public Fittings(PumpStation _pumpStation, StationComponentTypeEnum _stationComponentsType)
            : base(_pumpStation, _stationComponentsType)
        {
            if (PumpStation.IsAutoCalculationDiameterConnection)
            {
                this.ComponentName = ComponentsNameAutoGenerate(PumpStation, 0, 0);
            }
            else
            {
                this.ComponentName = ComponentsNameGenerate(PumpStation);
            }

            ComponentLocationPath = ComponentsValCalculator.GetFullPathToTheComponent(_pumpStation.componentsLocation, this);
        }
Beispiel #4
0
        public UnequalFittings(PumpStation _pumpStation, StationComponentTypeEnum _stationComponentsType)
            : base(_pumpStation, _stationComponentsType)
        {
            if (PumpStation.IsAutoCalculationDiameterConnection)
            {
                this.ComponentName = this.ComponentsNameAutoGenerate(PumpStation, PumpStation.mainPump.SuctionSideDn,
                                                                     PumpStation.mainPump.PressureSideDn);
            }
            else
            {
                this.ComponentName = ComponentsNameGenerate(PumpStation);
            }

            ComponentLocationPath = ComponentsValCalculator.GetFullPathToTheComponent(_pumpStation.componentsLocation, this);
        }
 public ControlCabinet(PumpStation _pumpStation, StationComponentTypeEnum _stationComponentsType, string _componentsName)
     : base(_pumpStation, _stationComponentsType)
 {
     ComponentName         = _componentsName;
     ComponentLocationPath = ComponentsValCalculator.GetFullPathToTheComponent(_pumpStation.componentsLocation, this);
 }