예제 #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 + "は互換性のない型です。");
            }
        }
예제 #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 + "は互換性のない型です。");
            }
        }
예제 #3
0
 public abstract void InheritFrom(AgentAlgorithm otherAlgo);
예제 #4
0
 public abstract void InheritFrom(AgentAlgorithm otherAlgo);