Пример #1
0
 public override void afterCalculation(TravelCalculator _travelCalculator)
 {
     _travelCalculator.NrOfTravelers++;
 }
Пример #2
0
 public override void afterCalculation(TravelCalculator _travelCalculator)
 {
     _travelCalculator.RouteType = _type;
 }
Пример #3
0
 public virtual void beforeCalculation(TravelCalculator _travelCalculator)
 {
 }
Пример #4
0
 public virtual void afterCalculation(TravelCalculator _travelCalculator)
 {
 }
Пример #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;
 }
Пример #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);
 }