C# Class EmotionalAppraisal.BaseEmotion

Represents an emotion, which is an instance of a particular Emotion Type
Inheritance: IEmotion
Mostra file Open project: GAIPS-INESC-ID/FAtiMA-Toolkit Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool
GetCause ( AM am ) : IBaseEvent
GetHashCode ( ) : int
IncreatePotential ( float delta ) : void
ToDto ( AM am ) : EmotionDTO
ToString ( AM am ) : string

Protected Methods

Method Description
BaseEmotion ( BaseEmotion other ) : System.Collections.Generic

Clone constructor

BaseEmotion ( string type, EmotionValence valence, IEnumerable appraisalVariables, float potential, bool influencesMood, uint causeId ) : System.Collections.Generic
BaseEmotion ( string type, EmotionValence valence, IEnumerable appraisalVariables, float potential, bool influencesMood, uint causeId, Name direction ) : System.Collections.Generic

Creates a new BasicEmotion

Method Details

BaseEmotion() protected method

Clone constructor
protected BaseEmotion ( BaseEmotion other ) : System.Collections.Generic
other BaseEmotion the emotion to clone
return System.Collections.Generic

BaseEmotion() protected method

protected BaseEmotion ( string type, EmotionValence valence, IEnumerable appraisalVariables, float potential, bool influencesMood, uint causeId ) : System.Collections.Generic
type string
valence EmotionValence
appraisalVariables IEnumerable
potential float
influencesMood bool
causeId uint
return System.Collections.Generic

BaseEmotion() protected method

Creates a new BasicEmotion
protected BaseEmotion ( string type, EmotionValence valence, IEnumerable appraisalVariables, float potential, bool influencesMood, uint causeId, Name direction ) : System.Collections.Generic
type string the type of the Emotion
valence EmotionValence
appraisalVariables IEnumerable
potential float the potential value for the intensity of the emotion
influencesMood bool
causeId uint
direction Name if the emotion is targeted to someone (ex: angry with Luke), this parameter specifies the target
return System.Collections.Generic

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetCause() public method

public GetCause ( AM am ) : IBaseEvent
am AutobiographicMemory.AM
return IBaseEvent

GetHashCode() public method

public GetHashCode ( ) : int
return int

IncreatePotential() public method

public IncreatePotential ( float delta ) : void
delta float
return void

ToDto() public method

public ToDto ( AM am ) : EmotionDTO
am AutobiographicMemory.AM
return EmotionalAppraisal.DTOs.EmotionDTO

ToString() public method

public ToString ( AM am ) : string
am AutobiographicMemory.AM
return string