Beispiel #1
0
        public override void InheritFrom(AgentAlgorithm otherAlgo)//候補集合、初期値を引き継ぐ。
        {
            if (otherAlgo is IAATBasedAgent)
            {
                AgentSpec spec = (otherAlgo as IAATBasedAgent).publishSpec();

                Thought           = new Thought(spec.PriorBelief);
                CandidateSelector = spec.CandidateSelector;

                Body = otherAlgo.Body;
                //候補集合と現在の重要視度だけは引き継ぐ
            }
            else
            {
                throw new Exception(otherAlgo.GetType().Name + "は互換性のない型です。");
            }
        }
Beispiel #2
0
        //候補集合、初期値を引き継ぐ。
        public override void InheritFrom(AgentAlgorithm otherAlgo)
        {
            if (otherAlgo is IAATBasedAgent)
            {
                AgentSpec spec = (otherAlgo as IAATBasedAgent).publishSpec();

                Thought = new Thought(spec.PriorBelief);
                CandidateSelector = spec.CandidateSelector;

                Body = otherAlgo.Body;
                //候補集合と現在の重要視度だけは引き継ぐ
            }
            else
            {
                throw new Exception(otherAlgo.GetType().Name + "は互換性のない型です。");
            }
        }
 public abstract void InheritFrom(AgentAlgorithm otherAlgo);
 public abstract void InheritFrom(AgentAlgorithm otherAlgo);