Ejemplo n.º 1
0
        public void RunOneRoundWithoutPlaySteps(I_Network network, I_AgentSet agent_set, int current_round)
        {
            foreach (var agent in agent_set.AgentList)
            {
                if (agent.IsChanged)
                {
                    agent.ChangedRoundList.Add(current_round);
                }
                if (agent.IsReceived)
                {
                    agent.ReceiveRoundList.Add(current_round);
                }
            }

            this.MyOSMLog.RecordOneRound(network, agent_set, current_round);

            this.EstAwaRates.Run(agent_set, this.CandidateSetList, current_round);
            this.SlctWeiStrategies.Run(this.CandidateSetList, agent_set, current_round);
            var weight_list = this.CandidateSetList.Select(can => can.GetCanWeight(can.SelectCanIndex)).ToList();

            agent_set.SetWeightList(weight_list);
            agent_set.InitBelief();
            agent_set.InitOpinion();
            agent_set.InitCounts();
            this.MyPlayOneStep.Initialize();
        }
Ejemplo n.º 2
0
 public void InitializePlaySteps(I_Network network, I_AgentSet agent_set)
 {
     agent_set.InitBelief();
     agent_set.InitOpinion();
     agent_set.InitCounts();
     this.MyPlayOneStep.Initialize();
 }
Ejemplo n.º 3
0
        /// <summary>
        /// 生成とラウンド開始時に呼び出してagentsetを初期化.
        /// </summary>
        /// <param name="network"></param>
        /// <param name="agent_set"></param>
        public void Initialize(I_Network network, I_AgentSet agent_set)
        {
            agent_set.InitBelief();
            agent_set.InitOpinion();
            agent_set.InitCounts();
            agent_set.InitRoundInfo();
            this.SurpriseIndicatorSet.Initialize();

            this.MyPlayOneStep.Initialize();
            this.CandidateSetList = GeneCanWeights.Generate(network, agent_set);

            this.SurpriseIndicatorSet.SetWeightDicList(this.CandidateSetList, network);
            var wei_dic_list = this.SurpriseIndicatorSet.WeightDic;

            agent_set.SetInitWeightDicList(wei_dic_list);
        }
Ejemplo n.º 4
0
        public void Initialize(I_Network network, I_AgentSet agent_set)
        {
            agent_set.InitBelief();
            agent_set.InitOpinion();
            agent_set.InitCounts();
            agent_set.InitRoundInfo();


            this.MyPlayOneStep.Initialize();

            this.CandidateSetList = GeneCanWeights.Generate(network, agent_set);
            var weight_list = this.CandidateSetList.Select(can => can.GetCanWeight(can.InitSelectCanIndex)).ToList();

            //weight_list = weight_list.Select(w => 0.8).ToList();

            agent_set.SetInitWeightList(weight_list);
        }