C# Class EmotionalAppraisal.ActiveEmotion

Inheritance: IActiveEmotion, ICustomSerialization
Afficher le fichier Open project: GAIPS-INESC-ID/FAtiMA-Toolkit Class Usage Examples

Méthodes publiques

Méthode Description
ActiveEmotion ( EmotionDTO emotionDTO, int threshold, int decay ) : System
ActiveEmotion ( IEmotion emotion, float potential, int threshold, int decay, ulong tickStamp ) : System

Creates a new ActiveEmotion

Equals ( object obj ) : bool
GetCause ( AM am ) : IBaseEvent
GetHashCode ( ) : int
GetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
ReforceEmotion ( float potential ) : void

Reforces the intensity of the emotion by a given potential

SetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
ToDto ( AM am ) : EmotionDTO
ToString ( AM am ) : string

Private Methods

Méthode Description
DecayEmotion ( EmotionalAppraisalAsset parent ) : void

Decays the emotion according to the system's time

SetIntensity ( float value, ulong tickStamp ) : void

Method Details

ActiveEmotion() public méthode

public ActiveEmotion ( EmotionDTO emotionDTO, int threshold, int decay ) : System
emotionDTO EmotionalAppraisal.DTOs.EmotionDTO
threshold int
decay int
Résultat System

ActiveEmotion() public méthode

Creates a new ActiveEmotion
public ActiveEmotion ( IEmotion emotion, float potential, int threshold, int decay, ulong tickStamp ) : System
emotion IEmotion the BaseEmotion that is the base for this ActiveEmotion
potential float the potential for the intensity of the emotion
threshold int the threshold for the specific emotion
decay int the decay rate for the specific emotion
tickStamp ulong
Résultat System

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetCause() public méthode

public GetCause ( AM am ) : IBaseEvent
am AutobiographicMemory.AM
Résultat IBaseEvent

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetObjectData() public méthode

public GetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
dataHolder ISerializationData
context ISerializationContext
Résultat void

ReforceEmotion() public méthode

Reforces the intensity of the emotion by a given potential
public ReforceEmotion ( float potential ) : void
potential float the potential for the reinformcement of the emotion's intensity
Résultat void

SetObjectData() public méthode

public SetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
dataHolder ISerializationData
context ISerializationContext
Résultat void

ToDto() public méthode

public ToDto ( AM am ) : EmotionDTO
am AutobiographicMemory.AM
Résultat EmotionalAppraisal.DTOs.EmotionDTO

ToString() public méthode

public ToString ( AM am ) : string
am AutobiographicMemory.AM
Résultat string