C# Class EmotionalAppraisal.EmotionalAppraisalAsset.ConcreteEmotionalState

Inheritance: IEmotionalState, ICustomSerialization
Afficher le fichier Open project: GAIPS-INESC-ID/FAtiMA-Toolkit

Méthodes publiques

Méthode Description
AddActiveEmotion ( EmotionDTO emotion ) : EmotionDTO
AddEmotion ( IEmotion emotion ) : IActiveEmotion

Creates and Adds to the emotional state a new ActiveEmotion based on a received BaseEmotion. However, the ActiveEmotion will be created and added to the emotional state only if the final intensity for the emotion surpasses the threshold for the emotion type.

AddEmotionDisposition ( EmotionDisposition emotionDisposition ) : void
Clear ( ) : void

Clears all the emotions in the EmotionalState

ConcreteEmotionalState ( EmotionalAppraisalAsset parent ) : System
Decay ( ) : void

Decays all emotions, mood and arousal

DetermineActiveEmotion ( IEmotion potEm ) : IActiveEmotion
GetAllEmotions ( ) : IEnumerable
GetEmotion ( IEmotion emotion ) : IActiveEmotion

Searches for a given emotion in the EmotionalState

GetEmotion ( string emotionKey ) : IActiveEmotion

Searches for a given emotion in the EmotionalState

GetEmotionDisposition ( String emotionName ) : EmotionDisposition
GetEmotionDispositions ( ) : IEnumerable
GetEmotionsByType ( string emotionType ) : IEnumerable
GetEmotionsKeys ( ) : IEnumerable
GetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
GetStrongestEmotion ( ) : IActiveEmotion
GetStrongestEmotion ( Name cause ) : IActiveEmotion
RemoveEmotion ( EmotionDTO emotion ) : void
RemoveEmotion ( IActiveEmotion em ) : void
RemoveEmotionDisposition ( string emotionName ) : void
SetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
ToString ( ) : string

Private Methods

Méthode Description
ConcreteEmotionalState ( ) : System
DeterminePotential ( IEmotion emotion ) : float
calculateHashString ( IEmotion emotion, AM am ) : string

unique hash string calculation function

Method Details

AddActiveEmotion() public méthode

public AddActiveEmotion ( EmotionDTO emotion ) : EmotionDTO
emotion EmotionalAppraisal.DTOs.EmotionDTO
Résultat EmotionalAppraisal.DTOs.EmotionDTO

AddEmotion() public méthode

Creates and Adds to the emotional state a new ActiveEmotion based on a received BaseEmotion. However, the ActiveEmotion will be created and added to the emotional state only if the final intensity for the emotion surpasses the threshold for the emotion type.
public AddEmotion ( IEmotion emotion ) : IActiveEmotion
emotion IEmotion the BaseEmotion that creates the ActiveEmotion
Résultat IActiveEmotion

AddEmotionDisposition() public méthode

public AddEmotionDisposition ( EmotionDisposition emotionDisposition ) : void
emotionDisposition EmotionDisposition
Résultat void

Clear() public méthode

Clears all the emotions in the EmotionalState
public Clear ( ) : void
Résultat void

ConcreteEmotionalState() public méthode

public ConcreteEmotionalState ( EmotionalAppraisalAsset parent ) : System
parent EmotionalAppraisalAsset
Résultat System

Decay() public méthode

Decays all emotions, mood and arousal
public Decay ( ) : void
Résultat void

DetermineActiveEmotion() public méthode

public DetermineActiveEmotion ( IEmotion potEm ) : IActiveEmotion
potEm IEmotion
Résultat IActiveEmotion

GetAllEmotions() public méthode

public GetAllEmotions ( ) : IEnumerable
Résultat IEnumerable

GetEmotion() public méthode

Searches for a given emotion in the EmotionalState
public GetEmotion ( IEmotion emotion ) : IActiveEmotion
emotion IEmotion
Résultat IActiveEmotion

GetEmotion() public méthode

Searches for a given emotion in the EmotionalState
public GetEmotion ( string emotionKey ) : IActiveEmotion
emotionKey string a string that corresponds to a hashkey that represents the emotion in the EmotionalState
Résultat IActiveEmotion

GetEmotionDisposition() public méthode

public GetEmotionDisposition ( String emotionName ) : EmotionDisposition
emotionName String
Résultat EmotionDisposition

GetEmotionDispositions() public méthode

public GetEmotionDispositions ( ) : IEnumerable
Résultat IEnumerable

GetEmotionsByType() public méthode

public GetEmotionsByType ( string emotionType ) : IEnumerable
emotionType string
Résultat IEnumerable

GetEmotionsKeys() public méthode

public GetEmotionsKeys ( ) : IEnumerable
Résultat IEnumerable

GetObjectData() public méthode

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

GetStrongestEmotion() public méthode

public GetStrongestEmotion ( ) : IActiveEmotion
Résultat IActiveEmotion

GetStrongestEmotion() public méthode

public GetStrongestEmotion ( Name cause ) : IActiveEmotion
cause Name
Résultat IActiveEmotion

RemoveEmotion() public méthode

public RemoveEmotion ( EmotionDTO emotion ) : void
emotion EmotionalAppraisal.DTOs.EmotionDTO
Résultat void

RemoveEmotion() public méthode

public RemoveEmotion ( IActiveEmotion em ) : void
em IActiveEmotion
Résultat void

RemoveEmotionDisposition() public méthode

public RemoveEmotionDisposition ( string emotionName ) : void
emotionName string
Résultat void

SetObjectData() public méthode

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

ToString() public méthode

public ToString ( ) : string
Résultat string