public void SetPerCapitaResidencial(TripParams trip)
 {
     foreach (var unit in AllUnits)
     {
         unit.PerCapitaResidencial = trip.PerCapitaResidencial;
     }
 }
 public void SetPerCapitaOffice(TripParams trip)
 {
     foreach (var unit in AllUnits)
     {
         unit.PerCapitaOffice = trip.PerCapitaOffice;
     }
 }
 public void SetPerCapitaIndustry(TripParams trip)
 {
     foreach (var unit in AllUnits)
     {
         unit.PerCapitaIndustry = trip.PerCapitaIndustry;
     }
 }
        public ParametersWindow()
        {
            InitializeComponent();

            backup = new TripParams(Parameter.Trip);
            TheGrid.DataContext = Parameter.Trip;
        }
Beispiel #5
0
 static Parameter()
 {
     Base        = new BaseParams();
     Building    = new BuildingParams();
     Trip        = new TripParams();
     Green       = new GreenParams();
     Maintenance = new MaintenanceParams();
 }
Beispiel #6
0
 public TripParams(TripParams other)
 {
     TripDistanceIntervalLowerLimits      = (double[])other.TripDistanceIntervalLowerLimits.Clone();
     TripDistanceIntervalAverageDistances = (double[])other.TripDistanceIntervalAverageDistances.Clone();
     TripDistanceIntervalProportions      = (double[])other.TripDistanceIntervalProportions.Clone();
     TripMethodProportions           = (double[][])other.TripMethodProportions.Clone();
     TripMethodUnitCarbonProductions = (double[])other.TripMethodUnitCarbonProductions.Clone();
     PerCapitaIndustry         = other.PerCapitaIndustry;
     PerCapitaOffice           = other.PerCapitaOffice;
     PerCapitaResidencial      = other.PerCapitaResidencial;
     AdultRate                 = other.AdultRate;
     StudentRate               = other.StudentRate;
     TripFrequencyOfTransit    = other.TripFrequencyOfTransit;
     TripFrequencyOfSchool     = other.TripFrequencyOfSchool;
     TripFrequencyOfOtherEvent = other.TripFrequencyOfOtherEvent;
 }