Ejemplo n.º 1
0
        public static ICollection <IAircraft> GetListAircraft()
        {
            AircraftPropertiesModel   aircraftProperties   = new AircraftPropertiesModel(capacity: 200, carryingCapacity: 500, rangeOfFlight: 5000);
            AircraftPropertiesModel   aircraftProperties1  = new AircraftPropertiesModel(capacity: 200, carryingCapacity: 500, rangeOfFlight: 4000);
            AircraftPropertiesModel   aircraftProperties2  = new AircraftPropertiesModel(capacity: 200, carryingCapacity: 500, rangeOfFlight: 3000);
            PlanePropertiesModel      planeProperties      = new PlanePropertiesModel(numberOfEngines: 2, numberOfPilots: 2, accelerationLine: 500);
            HelicopterPropertiesModel helicopterProperties = new HelicopterPropertiesModel(maximumHeightOfWork: 300, minimumHeightOfWork: 50, numberOfScrews: 4);

            List <IAircraft> airport = new List <IAircraft>()
            {
                new Aircraft("Original", "Original", aircraftProperties),
                new Plane(typeOfPlane: "boing1", nameOfPlane: "Alice", aircraftProperties: aircraftProperties, planeProperties: planeProperties),
                new PassengerPlane(typeOfPlane: "boing2", nameOfPlane: "Orianna", aircraftProperties: aircraftProperties1, planeProperties: planeProperties, numberOfPlaces: 120),
                new TransportPlane(typeOfPlane: "boing2", nameOfPlane: "TwoBe", aircraftProperties: aircraftProperties2, planeProperties: planeProperties, power: 20),
                new Helicopter(typeOfPlane: "Ansat1", nameOfPlane: "NineS", aircraftProperties: aircraftProperties1, helicopterProperties: helicopterProperties),
                new PassengerHelicopter(typeOfPlane: "Ansat2", nameOfPlane: "ATwo", aircraftProperties: aircraftProperties, helicopterProperties: helicopterProperties, numberOfPlaces: 30),
                new TransportHelicopter(typeOfPlane: "Ansat3", nameOfPlane: "Nier", aircraftProperties: aircraftProperties2, helicopterProperties: helicopterProperties, power: 5)
            };

            return(airport);
        }
Ejemplo n.º 2
0
 public PassengerHelicopter(string typeOfPlane, string nameOfPlane, AircraftPropertiesModel aircraftProperties, HelicopterPropertiesModel helicopterProperties, int numberOfPlaces) : base(typeOfPlane, nameOfPlane, aircraftProperties, helicopterProperties)
 {
     NumberOfPlaces = numberOfPlaces;
 }
Ejemplo n.º 3
0
 public Helicopter(string typeOfPlane, string nameOfPlane, AircraftPropertiesModel aircraftProperties, HelicopterPropertiesModel helicopterProperties) : base(typeOfPlane, nameOfPlane, aircraftProperties)
 {
     HelicopterProperties = helicopterProperties;
 }
Ejemplo n.º 4
0
 public PassengerPlane(string typeOfPlane, string nameOfPlane, AircraftPropertiesModel aircraftProperties, PlanePropertiesModel planeProperties, int numberOfPlaces) : base(typeOfPlane, nameOfPlane, aircraftProperties, planeProperties)
 {
     NumberOfPlaces = numberOfPlaces;
 }
Ejemplo n.º 5
0
 public Plane(string typeOfPlane, string nameOfPlane, AircraftPropertiesModel aircraftProperties, PlanePropertiesModel planeProperties) : base(typeOfPlane, nameOfPlane, aircraftProperties)
 {
     PlaneProperties = planeProperties;
 }
Ejemplo n.º 6
0
 public TransportPlane(string typeOfPlane, string nameOfPlane, AircraftPropertiesModel aircraftProperties, PlanePropertiesModel planeProperties, double power) : base(typeOfPlane, nameOfPlane, aircraftProperties, planeProperties)
 {
     Power = power;
 }
Ejemplo n.º 7
0
 public TransportHelicopter(string typeOfPlane, string nameOfPlane, AircraftPropertiesModel aircraftProperties, HelicopterPropertiesModel helicopterProperties, double power) : base(typeOfPlane, nameOfPlane, aircraftProperties, helicopterProperties)
 {
     Power = power;
 }