protected virtual bool IsBiggerWeight(CandidateRecord select_record, CandidateRecord other_record) { double other_canwei = other_record.CanWeight; double select_canwei = select_record.CanWeight; return((other_canwei >= select_canwei) ? true : false); }
protected virtual bool IsEvsOpinionFormed(Agent agent, CandidateRecord select_record, CandidateRecord other_record, double obs_u) { bool evs1 = this.IsDetermined(agent) && this.IsBiggerWeight(select_record, other_record); //agentが意見形成しててother>=selectならtrue bool evs2 = this.IsSmallerU(other_record, agent, obs_u) && (other_record.CanWeight != select_record.CanWeight); //受信意見数が必要数以上かつweightが同じでないなら return(evs1 || evs2); //どちらかを満たしているならtrue }
protected virtual bool IsSmallerU(CandidateRecord other_record, Agent agent, double obs_u) { int req_u = other_record.RequireOpinionNum; return((obs_u >= req_u) ? true : false); //受け取った意見値の総数が必要数以上ならtrue }