예제 #1
0
 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);
 }
예제 #2
0
 public void UpdateSatisfaction()
 {
     Satisfaction = Math.Round(
         PassengerBehaviourProvider
         .GetSatisfactionDeterminationAlgorithm(ChoiceTransportAlgorithmType)
         .GetSatisfaction(this),
         2);
     AllQualityCoefficients.Add(QualityCoefficient);
 }