private PurePassengerTripChain CreateDriverTripChain(Time start, Time end, IZone homeZone, ITashaPerson driver) { var mode = PassengerMode.AssociatedMode; var driverTrip = PurePassengerTrip.MakeDriverTrip(homeZone, mode, start, end); var driverTripChain = new PurePassengerTripChain(); driverTrip.TripChain = driverTripChain; driverTripChain.Trips.Add(driverTrip); driverTripChain.Person = driver; return(driverTripChain); }
public static PurePassengerTrip MakeDriverTrip(IZone homeZone, ITashaMode mode, Time startTime, Time endTime) { PurePassengerTrip driverTrip = new PurePassengerTrip(); driverTrip.Purpose = Activity.FacilitatePassenger; driverTrip.OriginalZone = driverTrip.DestinationZone = homeZone; driverTrip.Mode = mode; driverTrip.ActivityStartTime = endTime; driverTrip.TripStartTime = startTime; return(driverTrip); }
public static PurePassengerTrip MakeDriverTrip(IZone HomeZone, ITashaMode mode, Time StartTime, Time EndTime) { PurePassengerTrip DriverTrip = new PurePassengerTrip(); DriverTrip.Purpose = Activity.FacilitatePassenger; DriverTrip.OriginalZone = DriverTrip.DestinationZone = HomeZone; DriverTrip.Mode = mode; DriverTrip.ActivityStartTime = EndTime; DriverTrip.TripStartTime = StartTime; return(DriverTrip); }
public static PurePassengerTrip MakeDriverTrip(IZone HomeZone, ITashaMode mode, Time StartTime, Time EndTime) { PurePassengerTrip DriverTrip = new PurePassengerTrip(); DriverTrip.Purpose = Activity.FacilitatePassenger; DriverTrip.OriginalZone = DriverTrip.DestinationZone = HomeZone; DriverTrip.Mode = mode; DriverTrip.ActivityStartTime = EndTime; DriverTrip.TripStartTime = StartTime; return DriverTrip; }