public override void afterCalculation(TravelCalculator _travelCalculator) { _travelCalculator.NrOfTravelers++; }
public override void afterCalculation(TravelCalculator _travelCalculator) { _travelCalculator.RouteType = _type; }
public virtual void beforeCalculation(TravelCalculator _travelCalculator) { }
public virtual void afterCalculation(TravelCalculator _travelCalculator) { }
/// <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; }
/// <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); }