public void ChooseNextTransportType(TransportType[] availableTransportTypes) { AvailableTransportTypes = availableTransportTypes; PreviousState = new AgentState(Neighbors, Satisfaction, TransportType, availableTransportTypes).GetStringFormat(); TransportType = PassengerBehaviourProvider .GetChoiceTransportAlgorithm(ChoiceTransportAlgorithmType) .ChooseNextTransportType(Neighbors, TransportType, Satisfaction, DeviationValue, availableTransportTypes); }
public void UpdateSatisfaction() { Satisfaction = Math.Round( PassengerBehaviourProvider .GetSatisfactionDeterminationAlgorithm(ChoiceTransportAlgorithmType) .GetSatisfaction(this), 2); AllQualityCoefficients.Add(QualityCoefficient); }