Exemplo n.º 1
0
        private void CreateChild(int stationZone, int parkingSpots)
        {
            SubwayAccessStation station = new SubwayAccessStation();

            //Setup the parameters
            station.Root                       = this.Root;
            station.Parent                     = this;
            station.Closest                    = this.Closest;
            station.ClosestDistance            = this.ClosestDistance;
            station.MaxAccessToDestinationTime = this.MaxAccessToDestinationTime;
            station.CurrentlyFeasible          = 1.0f;
            // The constant for this option is not the same as for the station choice
            //station.Constant = this.Constant;
            station.AccessInVehicleTravelTime = this.AccessInVehicleTravelTime;
            station.AccessCost          = this.AccessCost;
            station.InVehicleTravelTime = this.GeneralTime;
            station.ParkingCost         = this.ParkingCost;
            station.LogParkingFactor    = this.ParkingFactor;
            station.WaitTime            = this.WaitTime;
            station.WalkTime            = this.WalkTime;
            station.FTTC = this.FTTC;

            // Setup the modes
            station.First  = this.First;
            station.Second = this.Second;

            // Create all of the individual parameters
            station.ModeName    = String.Format("{0}:{1}", this.ModeName, stationZone);
            station.StationZone = stationZone;
            station.Parking     = parkingSpots;
            // Add it to the list of children
            this.Children.Add(station);
        }
Exemplo n.º 2
0
        private void CreateChild(int stationZone, int parkingSpots)
        {
            SubwayAccessStation station = new SubwayAccessStation();
            //Setup the parameters
            station.Root = this.Root;
            station.Parent = this;
            station.Closest = this.Closest;
            station.ClosestDistance = this.ClosestDistance;
            station.MaxAccessToDestinationTime = this.MaxAccessToDestinationTime;
            station.CurrentlyFeasible = 1.0f;
            // The constant for this option is not the same as for the station choice
            //station.Constant = this.Constant;
            station.AccessInVehicleTravelTime = this.AccessInVehicleTravelTime;
            station.AccessCost = this.AccessCost;
            station.InVehicleTravelTime = this.GeneralTime;
            station.ParkingCost = this.ParkingCost;
            station.LogParkingFactor = this.ParkingFactor;
            station.WaitTime = this.WaitTime;
            station.WalkTime = this.WalkTime;
            station.FTTC = this.FTTC;

            // Setup the modes
            station.First = this.First;
            station.Second = this.Second;

            // Create all of the individual parameters
            station.ModeName = String.Format( "{0}:{1}", this.ModeName, stationZone );
            station.StationZone = stationZone;
            station.Parking = parkingSpots;
            // Add it to the list of children
            this.Children.Add( station );
        }