Exemple #1
0
 public WorkLocationUtilities(IPersonWrapper person, int sampleSize, int destinationArrivalTime, int destinationDepartureTime)
 {
     _person                   = person;
     _sampleSize               = sampleSize;
     _destinationArrivalTime   = destinationArrivalTime;
     _destinationDepartureTime = destinationDepartureTime;
     _seedValues               = ChoiceModelUtility.GetRandomSampling(_sampleSize, person.SeedValues[0]);
 }
Exemple #2
0
 public SchoolLocationUtilities(SchoolLocationModel parentClass, IPersonWrapper person, int sampleSize, int destinationArrivalTime, int destinationDepartureTime)
 {
     _parentClass              = parentClass;
     _person                   = person;
     _sampleSize               = sampleSize;
     _destinationArrivalTime   = destinationArrivalTime;
     _destinationDepartureTime = destinationDepartureTime;
     _seedValues               = ChoiceModelUtility.GetRandomSampling(_sampleSize, person.SeedValues[1]);
 }
Exemple #3
0
 public TourDestinationUtilities(ITourWrapper tour, int sampleSize, int secondaryFlag, int workOrSchoolPatternFlag, int otherPatternFlag, int fastestAvailableTimeOfDay, int maxAvailableMinutes)
 {
     _tour                      = tour;
     _secondaryFlag             = secondaryFlag;
     _workOrSchoolPatternFlag   = workOrSchoolPatternFlag;
     _otherPatternFlag          = otherPatternFlag;
     _fastestAvailableTimeOfDay = fastestAvailableTimeOfDay;
     _maxAvailableMinutes       = maxAvailableMinutes;
     _seedValues                = ChoiceModelUtility.GetRandomSampling(sampleSize, tour.Person.SeedValues[20 + tour.Sequence - 1]);
 }
Exemple #4
0
 public TourDestinationUtilities(ITourWrapper tour, int sampleSize, int primaryFlag, int secondaryFlag, int fastestAvailableTimeOfDay, int maxAvailableMinutes)
 {
     _tour                      = tour;
     _sampleSize                = sampleSize;
     _primaryFlag               = primaryFlag;
     _secondaryFlag             = secondaryFlag;
     _fastestAvailableTimeOfDay = fastestAvailableTimeOfDay;
     _maxAvailableMinutes       = maxAvailableMinutes;
     _seedValues                = ChoiceModelUtility.GetRandomSampling(_sampleSize, tour.Person.SeedValues[20 + tour.Sequence - 1]);
 }