Exemplo n.º 1
0
        public EmotionalAppraisalAsset(string perspective)
        {
            m_kb = new KB((Name)perspective);
            m_am = new AM();
            m_am.BindCalls(m_kb);

            m_emotionalState     = new ConcreteEmotionalState(this);
            m_occAffectDerivator = new OCCAffectDerivationComponent();
            m_appraisalDerivator = new ReactiveAppraisalDerivator();
            BindCalls(m_kb);
        }
Exemplo n.º 2
0
        public void SetObjectData(ISerializationData dataHolder)
        {
            Description = dataHolder.GetValue <string>("Description");
            EmotionalHalfLifeDecayTime             = dataHolder.GetValue <float>("EmotionalHalfLifeDecayTime");
            MoodHalfLifeDecayTime                  = dataHolder.GetValue <float>("MoodHalfLifeDecayTime");
            HalfLifeDecayConstant                  = dataHolder.GetValue <double>("HalfLifeDecayConstant");
            EmotionInfluenceOnMoodFactor           = dataHolder.GetValue <float>("EmotionInfluenceOnMoodFactor");
            MoodInfluenceOnEmotionFactor           = dataHolder.GetValue <float>("MoodInfluenceOnEmotionFactor");
            MinimumMoodValueForInfluencingEmotions = dataHolder.GetValue <double>("MinimumMoodValueForInfluencingEmotions");

            m_kb = dataHolder.GetValue <KB>("KnowledgeBase");
            m_am = dataHolder.GetValue <AM>("AutobiographicMemory");
            m_am.BindCalls(m_kb);

            m_emotionalState     = dataHolder.GetValue <ConcreteEmotionalState>("EmotionalState");
            m_appraisalDerivator = dataHolder.GetValue <ReactiveAppraisalDerivator>("AppraisalRules");

            m_occAffectDerivator = new OCCAffectDerivationComponent();
            BindCalls(m_kb);
        }