Beispiel #1
0
 public override void afterCalculation(TravelCalculator _travelCalculator)
 {
     _travelCalculator.NrOfTravelers++;
 }
Beispiel #2
0
 public override void afterCalculation(TravelCalculator _travelCalculator)
 {
     _travelCalculator.RouteType = _type;
 }
Beispiel #3
0
 public virtual void beforeCalculation(TravelCalculator _travelCalculator)
 {
 }
Beispiel #4
0
 public virtual void afterCalculation(TravelCalculator _travelCalculator)
 {
 }
Beispiel #5
0
 /// <summary>
 /// Updates current travel state based on all events that taken place till now.
 /// </summary>
 /// <returns></returns>
 public TravelCalculator getTravelState()
 {
     TravelCalculator trv = new TravelCalculator(_Travelers, _Events, Car);
     trv.getState();
     return trv;
 }
Beispiel #6
0
 /// <summary>
 /// Calcualte costs of travel for all travelers up to current distance
 /// </summary>
 public void CalculateCosts()
 {
     //create new travel calculator.
     TravelCalculator calc = new TravelCalculator(_Travelers, _Events, Car);
 }