Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 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;
 }