예제 #1
0
 public Vehicle(string i_ModelName, string i_LicensePlate, VehicleEnergy i_Energy, int i_HowManyTires, float i_MaxTirePressure, string i_Manufacture)
 {
     m_ModelName    = i_ModelName;
     m_LicensePlate = i_LicensePlate;
     m_Energy       = i_Energy;
     m_Tires        = Tire.MakeTireSet(i_HowManyTires, i_MaxTirePressure, i_Manufacture);
 }
        public Vehicles(string i_ModelName, string i_LicenseNumber, float i_PercentageOfEnergyRemainingInItsEnergysource,
                        int i_NumberOfWheelsInVehicles, float i_VehiclesWheelsMaxAirPressure, string i_WheelManufacturerName, float i_CurrentAirPressur, VehicleEnergy i_VehicleEnergy)
        {
            m_ModelName     = i_ModelName;
            m_LicenseNumber = i_LicenseNumber;
            PercentageOfEnergyRemainingInItsEnergysource = i_PercentageOfEnergyRemainingInItsEnergysource;

            m_CollectionofWheel = new List <CollectionofWheels>();

            createVehicleWheels(i_NumberOfWheelsInVehicles, i_WheelManufacturerName, i_CurrentAirPressur, i_VehiclesWheelsMaxAirPressure);
            VehicleEnergy = i_VehicleEnergy;
        }
예제 #3
0
 protected void asssaignEnergySourceToElectric(ref VehicleEnergy io_Energy, float i_CurrentAmount, float i_MaxAmount, EnergyType i_Electric)
 {
     ElectricEnergy.ValidateElectriclType(i_Electric);
     io_Energy           = new ElectricEnergy(i_CurrentAmount, i_MaxAmount);
     PercentOfEnergyLeft = percentOfEnergyLeftCalculation(i_CurrentAmount, i_MaxAmount);
 }
예제 #4
0
 protected void asssaignEnergySourceToFuel(ref VehicleEnergy io_Energy, eFuelType i_FuelType, float i_CurrentAmount, float i_MaxAmount, EnergyType i_Fuel)
 {
     FuelEnergy.ValidateFuelType(i_Fuel);
     io_Energy           = new FuelEnergy(i_FuelType, i_CurrentAmount, i_MaxAmount);
     PercentOfEnergyLeft = percentOfEnergyLeftCalculation(i_CurrentAmount, i_MaxAmount);
 }
        public Motorcycle(eLicenseType i_LicenseType, int i_EngineVolumeInCc, string i_ModelName, string i_LicenseNumber,
                          float i_PercentageOfEnergyRemainingInItsEnergysource, string i_WheelManufacturerName, float i_CurrentAirPressur, VehicleEnergy i_VehicleEnergy) :
            base(i_ModelName, i_LicenseNumber, i_PercentageOfEnergyRemainingInItsEnergysource,
                 k_MotorcycleNumOfWheels, k_MotorcycleWheelsMaxAirPressure, i_WheelManufacturerName, i_CurrentAirPressur, i_VehicleEnergy)
        {
            r_LicenseType = i_LicenseType;

            EngineVolumeInCc = i_EngineVolumeInCc;
        }
예제 #6
0
        public commercialVehicle(string i_ModelName, string i_LicenseNumber, float i_PercentageOfEnergyRemainingInItsEnergysource,
                                 int i_NumberOfWheelsInVehicles, float i_VehiclesWheelsMaxAirPressure, string i_WheelManufacturerName, float i_CurrentAirPressur,
                                 bool i_IsTransportingDangerousSubstances, float i_CargoVolume, VehicleEnergy i_VehicleEnergy) :
            base(i_ModelName, i_LicenseNumber, i_PercentageOfEnergyRemainingInItsEnergysource,
                 i_NumberOfWheelsInVehicles, i_VehiclesWheelsMaxAirPressure, i_WheelManufacturerName, i_CurrentAirPressur, i_VehicleEnergy)
        {
            r_IsTransportingDangerousSubstances = i_IsTransportingDangerousSubstances;

            r_Cargovolume = i_CargoVolume;
        }
예제 #7
0
 public Car(string i_ModelName, string i_LicensePlate, eColor i_Color, eCarDoors i_NumberOfDoors, VehicleEnergy i_VehicleEnergy, string i_Manufacture)
     : base(i_ModelName, i_LicensePlate, i_VehicleEnergy, k_HowManyTires, k_MaxTirePressure, i_Manufacture)
 {
     m_Color         = i_Color;
     m_NumberOfDoors = i_NumberOfDoors;
 }
예제 #8
0
 public Car(int i_AmountOfDoors, eColor i_ColorOfCar
            , string i_ModelName, string i_LicenseNumber,
            float i_PercentageOfEnergyRemainingInItsEnergysource, String i_WheelManufacturerName, float i_CurrentAirPressur, VehicleEnergy i_VehicleEnergy)
     : base(i_ModelName, i_LicenseNumber, i_PercentageOfEnergyRemainingInItsEnergysource,
            k_NumberOfWheelsInCar, k_CarWheelsMaxAirPressure, i_WheelManufacturerName, i_CurrentAirPressur, i_VehicleEnergy)
 {
     r_ColorOfCar    = i_ColorOfCar;
     r_AmountOfDoors = i_AmountOfDoors;
 }
예제 #9
0
 public MotorCycle(string i_ModelName, string i_LicensePlate, float i_EngineCapacity, eLicenseType i_LicenseType, VehicleEnergy i_VehicleEnergy, string i_Manufacture)
     : base(i_ModelName, i_LicensePlate, i_VehicleEnergy, k_HowManyTires, k_MaxTirePressure, i_Manufacture)
 {
     m_LicenseType      = i_LicenseType;
     m_EngineCapacityCC = i_EngineCapacity;
 }
예제 #10
0
 protected Vehicle()
 {
     vehicleEnergy            = new VehicleEnergy();
     VehicleConditionInGarage = eVehicleConditionInGarage.Fixing;
 }