Beispiel #1
0
 /// <summary>
 /// Creates a travel object.
 /// </summary>
 /// <param name="_gps">GPS watcher</param>
 /// <param name="_car">Car object</param>
 public Travel(GPS.GPS _gps, Car _car)
 {
     this.GPS = _gps;
     this.Car = _car;
     this.TravelState = TravelStates.clear;
     this.ChangeRouteType(ChangeRouteTypeTravelEvent.RouteTypes.mixed);
     GPS.DistanceChanged += new EventHandler<DistanceEventArgs>(DistanceChanged);
 }
Beispiel #2
0
 public TravelCalculator(List<Traveler> _Travelers, List<TravelEvent> _events, Car _car)
 {
     Travelers = _Travelers;
     Car = _car;
     Events = _events;
     _lastEventDistance = 0;
     _nrOfTravelers = 0;
 }