コード例 #1
0
        protected override void OnTimePassedEvent(object sender, ExtendedTimePassedEventArgs e)
        {
            if (!e.HasRoundPassed && RoundsPassed == 0)
            {
                return;
            }

            if (RoundsPassed < Domain.NumberOfRounds - 1)
            {
                RoundRobinOffer(BestFScoreUtilityOffers.Values, e.RemainingTime);
            }
            else
            {
                RoundRobinOffer(BestCombinedUtilityOffers.Values, e.RemainingTime);
            }
        }
コード例 #2
0
ファイル: BasicDona.cs プロジェクト: edenerez/Negotiation
        protected override void OnTimePassedEvent(object sender, ExtendedTimePassedEventArgs e)
        {
            if (!e.HasRoundPassed && RoundsPassed != Domain.NumberOfRounds - 1)
            {
                return;
            }

            if (RoundsPassed == 0)
            {
                return;
            }
            else if (RoundsPassed < Domain.NumberOfRounds - 1)
            {
                CompareOffer(OpponentOffer, false);
                SendOffer(BestFScoreUtilityOffers.Values.ElementAt(RoundsPassed % BestFScoreUtilityOffers.Count).Offer);
            }
            else
            {
                RoundRobinOffer(BestCombinedUtilityOffers.Values, e.RemainingTime);
            }
        }
コード例 #3
0
 protected abstract void OnTimePassedEvent(object sender, ExtendedTimePassedEventArgs e);
コード例 #4
0
 protected abstract void OnTimePassedEvent(object sender, ExtendedTimePassedEventArgs e);