EmotionalAppraisal.ActiveEmotion.GetCause C# (CSharp) Method

GetCause() public method

public GetCause ( AM am ) : IBaseEvent
am AutobiographicMemory.AM
return IBaseEvent
        public IBaseEvent GetCause(AM am)
        {
            return am.RecallEvent(CauseId);
        }

Usage Example

Example #1
0
        public EmotionDTO AddActiveEmotion(EmotionDTO emotion, AM am)
        {
            var activeEmotion = new ActiveEmotion(emotion, am, 1, 1);

            if (emotionPool.ContainsKey(calculateHashString(activeEmotion)))
            {
                throw new ArgumentException("This given emotion is already related to given cause", nameof(emotion));
            }

            emotionPool.Add(calculateHashString(activeEmotion), activeEmotion);
            activeEmotion.GetCause(am).LinkEmotion(activeEmotion.EmotionType);
            return(activeEmotion.ToDto(am));
        }
All Usage Examples Of EmotionalAppraisal.ActiveEmotion::GetCause