Example #1
0
        /// <summary>
        /// Создает объект для  DC двигателя (Не сделан!)
        /// </summary>
        /// <param name="trainName"></param>
        /// <returns></returns>
        /// <exception cref="ArgumentOutOfRangeException">less zero.</exception>
        public static DCMachine GetDCMachineParametres(String trainName)
        {
            var repository = АdditionalParameterRepository.GetInstance();

            var baseMachine = repository.GetBaseMachineParametres(trainName);

            var dcMachine = (DCMachine)baseMachine;

            dcMachine.WeakPull2 = repository.GetAdditionalParametresByTrainName(trainName).WeakPull2;

            dcMachine.PositionPull2 = repository.GetAdditionalParametresByTrainName(trainName).PositionPull2;

            dcMachine.ConnectionPull2 = repository.GetAdditionalParametresByTrainName(trainName).ConnectionPull2;

            dcMachine.AssemblyPowerCircuitTime = repository.GetAdditionalParametresByTrainName(trainName).AssemblyPowerCircuitTime;

            dcMachine.DisassemblyPowerCircuitTime = repository.GetAdditionalParametresByTrainName(trainName).DisassemblyPowerCircuitTime;

            dcMachine.AssemblyPullTime = repository.GetAdditionalParametresByTrainName(trainName).AssemblyPullTime;

            dcMachine.AssemblyPullResistance = repository.GetAdditionalParametresByTrainName(trainName).AssemblyPullResistance;

            dcMachine.AssemblyBreakTime = repository.GetAdditionalParametresByTrainName(trainName).AssemblyBreakTime;

            dcMachine.AssemblyBreakResistance = repository.GetAdditionalParametresByTrainName(trainName).AssemblyBreakResistance;

            dcMachine.AnchorResistance = repository.GetAdditionalParametresByTrainName(trainName).AnchorResistance;

            dcMachine.MainPoleResistance = repository.GetAdditionalParametresByTrainName(trainName).MainPoleResistance;

            dcMachine.ComPolesResistance = repository.GetAdditionalParametresByTrainName(trainName).CompolesResistance;

            dcMachine.AutoModeFactor1 = repository.GetAdditionalParametresByTrainName(trainName).AutomodeFactor1;

            dcMachine.AutoModeFactor2 = repository.GetAdditionalParametresByTrainName(trainName).AutomodeFactor2;

            dcMachine.ExcitationTimeFactor1 = repository.GetAdditionalParametresByTrainName(trainName).ExcitationTimeFactor1;

            dcMachine.ExcitationTimeFactor2 = repository.GetAdditionalParametresByTrainName(trainName).ExcitationTimeFactor2;

            dcMachine.ExcitationTimeFactor3 = repository.GetAdditionalParametresByTrainName(trainName).ExcitationTimeFactor3;

            dcMachine.MaxExcitationTime = repository.GetAdditionalParametresByTrainName(trainName).MaxExcitationTime;

            dcMachine.LowAutoModeRange = repository.GetAdditionalParametresByTrainName(trainName).LowAutoModeRange;

            dcMachine.HighAutoModeRange = repository.GetAdditionalParametresByTrainName(trainName).HighAutoModeRange;

            dcMachine.LinearGrowCurrentTime = repository.GetAdditionalParametresByTrainName(trainName).LinearGrowCurrentTime;

            return(dcMachine);
        }
Example #2
0
 /// <summary>
 /// Достает из БД все записи из таблицы Дополнительные параметры
 /// </summary>
 /// <returns></returns>
 /// <exception cref="ArgumentNullException">Параметр <paramref name="source" /> имеет значение null.</exception>
 private static IList <AdditionalParameter> GetАdditionalParameter() => АdditionalParameterRepository.GetInstance().GetAll();